ClickHouse/programs/keeper/CMakeLists.txt

25 lines
614 B
CMake
Raw Normal View History

2021-05-12 10:39:07 +00:00
set(CLICKHOUSE_KEEPER_SOURCES
Keeper.cpp
)
2021-05-13 12:26:10 +00:00
if (OS_LINUX)
set (LINK_RESOURCE_LIB INTERFACE "-Wl,${WHOLE_ARCHIVE} $<TARGET_FILE:clickhouse_keeper_configs> -Wl,${NO_WHOLE_ARCHIVE}")
endif ()
2021-05-12 10:39:07 +00:00
set (CLICKHOUSE_KEEPER_LINK
PRIVATE
clickhouse_common_config
clickhouse_common_io
clickhouse_common_zookeeper
daemon
dbms
2021-05-13 12:26:10 +00:00
${LINK_RESOURCE_LIB}
2021-05-12 10:39:07 +00:00
)
clickhouse_program_add(keeper)
2021-05-12 13:04:34 +00:00
2021-05-13 08:42:10 +00:00
install (FILES keeper_config.xml DESTINATION "${CLICKHOUSE_ETC_DIR}/clickhouse-keeper" COMPONENT clickhouse-keeper)
2021-05-13 12:26:10 +00:00
clickhouse_embed_binaries(keeper keeper_config.xml keeper_embedded.xml)