2022-01-10 15:36:32 +00:00
|
|
|
include(${ClickHouse_SOURCE_DIR}/cmake/embed_binary.cmake)
|
|
|
|
|
|
|
|
set(LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/nlp-data")
|
|
|
|
|
2022-01-25 09:54:43 +00:00
|
|
|
add_library (_nlp_data INTERFACE)
|
2022-01-10 15:36:32 +00:00
|
|
|
|
|
|
|
clickhouse_embed_binaries(
|
2022-01-25 09:54:43 +00:00
|
|
|
TARGET nlp_dictionaries
|
2022-01-10 15:36:32 +00:00
|
|
|
RESOURCE_DIR "${LIBRARY_DIR}"
|
|
|
|
RESOURCES charset.zst tonality_ru.zst programming.zst
|
|
|
|
)
|
|
|
|
|
2022-01-25 09:54:43 +00:00
|
|
|
add_dependencies(_nlp_data nlp_dictionaries)
|
|
|
|
target_link_libraries(_nlp_data INTERFACE "-Wl,${WHOLE_ARCHIVE} $<TARGET_FILE:nlp_dictionaries> -Wl,${NO_WHOLE_ARCHIVE}")
|
|
|
|
add_library(ch_contrib::nlp_data ALIAS _nlp_data)
|