forked from HIT-SCIR/ltp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
81 lines (72 loc) · 1.67 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
include_directories (./
${SOURCE_DIR}/__util
${SOURCE_DIR}/__xml4nlp
${SOURCE_DIR}/_split_sentence
${SOURCE_DIR}/_ner
${SOURCE_DIR}/_srl
${SOURCE_DIR}/__ltp_dll
${THIRDPARTY_DIR}/tinythreadpp
${THIRDPARTY_DIR}/crfpp
${THIRDPARTY_DIR}/maxent
${THIRDPARTY_DIR}/tinyxml)
set (ltp_test_SRC ltp_test.cpp)
set (multi_ltp_test_SRC multi_ltp_test.cpp
${THIRDPARTY_DIR}/tinythreadpp/tinythread.cpp)
#set (ltp_test_xml_SRC ltp_test_xml.cpp)
#set (ltp_test2_SRC ltp_test2.cpp)
link_directories ( ${LIBRARY_OUTPUT_PATH} )
add_executable (ltp_test ${ltp_test_SRC})
add_executable (multi_ltp_test ${multi_ltp_test_SRC})
#add_executable (ltp_test_xml ${ltp_test_xml_SRC})
#add_executable (ltp_test2 ${ltp_test2_SRC})
set (ltp_test_LIBS
maxent_static_lib
util_static_lib
ltp
splitsnt
segmentor_static_lib
postagger_static_lib
parser_static_lib
ner_static_lib
srl_static_lib
xml4nlp
boost_regex_static_lib)
if (NOT WIN32)
set (ltp_test_LIBS ${ltp_test_LIBS} pthread)
endif()
target_link_libraries (ltp_test ${ltp_test_LIBS})
target_link_libraries (multi_ltp_test ${ltp_test_LIBS} pthread)
#target_link_libraries (ltp_test2
# maxent
# crfpp
# util
# ltp
# splitsnt
# crfwordseg
# postagger
# gparser
# ner
# srl
# xml4nlp
# dl
# pthread
# boost_regex)
#target_link_libraries (ltp_test_xml
# maxent
# crfpp
# util
# ltp
# splitsnt
# crfwordseg
# postagger
# gparser
# ner
# srl
# xml4nlp
# dl
# pthread
# boost_regex)
#add_test (NAME ltp_test
# COMMAND "${CMAKE_COMMAND}"
# -DTEST_PROG=${EXECUTABLE_TEST_OUTPUT}
# -P ${CMAKE_MODULE_PATH}/LtpDiff.cmake)