summaryrefslogtreecommitdiffstats
path: root/src/storage/CMakeLists.txt
blob: b7753500d7f8d515e0ce4f670b4ddebbae7d00fa (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
set(
    LIBSTORAGE_HEADERS
    pinyin_large_table.h
    pinyin_base.h
    pinyin_phrase.h
    phrase_index.h
    phrase_index_logger.h
    pinyin_zhuyin_map_data.h
    phrase_large_table.h
    ngram.h
    flexible_ngram.h
    tag_utility.h
)

set(
    LIBSTORAGE_SOURCES
    pinyin_base.cpp
    pinyin_large_table.cpp
    phrase_index.cpp
    phrase_large_table.cpp
    ngram.cpp
    tag_utility.cpp
)

add_library(
    storage
    STATIC
    ${LIBSTORAGE_SOURCES}
)

target_link_libraries(
    storage
    ${GLIB2_LIBRARIES}
    ${BERKELEY_DB_LIBRARIES}
)

install(
    FILES
        ${LIBSTORAGE_HEADERS}
    DESTINATION
        ${DIR_INCLUDE_LIBPINYIN}
)