blob: 26330e0f0d4a2f69c39d3d753c91df996cfc9a11 (
plain)
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
|
set(
CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC"
)
set(
LIBSTORAGE_HEADERS
pinyin_custom2.h
)
set(
LIBSTORAGE_SOURCES
phrase_index.cpp
phrase_large_table2.cpp
phrase_large_table3.cpp
ngram.cpp
tag_utility.cpp
chewing_key.cpp
pinyin_parser2.cpp
zhuyin_parser2.cpp
phonetic_key_matrix.cpp
chewing_large_table.cpp
chewing_large_table2.cpp
table_info.cpp
)
if (HAVE_BERKELEY_DB)
set(
LIBSTORAGE_SOURCES
${LIBSTORAGE_SOURCES}
chewing_large_table2_bdb.cpp
ngram_bdb.cpp
phrase_large_table3_bdb.cpp
)
endif (HAVE_BERKELEY_DB)
if (HAVE_KYOTO_CABINET)
set(
LIBSTORAGE_SOURCES
${LIBSTORAGE_SOURCES}
chewing_large_table2_kyotodb.cpp
ngram_kyotodb.cpp
phrase_large_table3_kyotodb.cpp
)
endif (HAVE_KYOTO_CABINET)
add_library(
storage
STATIC
${LIBSTORAGE_SOURCES}
)
target_link_libraries(
storage
${GLIB2_LIBRARIES}
${BERKELEY_DB_LIBRARIES}
)
install(
FILES
${LIBSTORAGE_HEADERS}
DESTINATION
${DIR_INCLUDE_LIBPINYIN}
)
|