ClickHouse/programs/server/CMakeLists.txt

35 lines
876 B
CMake
Raw Normal View History

2019-03-04 17:47:31 +00:00
set(CLICKHOUSE_SERVER_SOURCES
MetricsTransmitter.cpp
Server.cpp
)
2020-09-25 01:45:47 +00:00
if (OS_LINUX)
2020-10-20 00:28:33 +00:00
set (LINK_RESOURCE_LIB INTERFACE "-Wl,${WHOLE_ARCHIVE} $<TARGET_FILE:clickhouse_server_configs> -Wl,${NO_WHOLE_ARCHIVE}")
2020-08-09 02:16:55 +00:00
endif ()
set (CLICKHOUSE_SERVER_LINK
PRIVATE
clickhouse_aggregate_functions
clickhouse_common_config
clickhouse_common_io
clickhouse_common_zookeeper
clickhouse_dictionaries
clickhouse_functions
clickhouse_parsers
clickhouse_storages_system
clickhouse_table_functions
string_utils
jemalloc
2020-10-20 00:28:33 +00:00
${LINK_RESOURCE_LIB}
2020-08-08 03:42:42 +00:00
PUBLIC
daemon
)
2019-03-04 17:47:31 +00:00
clickhouse_program_add(server)
2018-06-05 20:09:51 +00:00
install(FILES config.xml users.xml DESTINATION "${CLICKHOUSE_ETC_DIR}/clickhouse-server" COMPONENT clickhouse)
2020-08-08 03:42:42 +00:00
2021-05-13 12:26:10 +00:00
clickhouse_embed_binaries(server config.xml users.xml embedded.xml play.html)