ClickHouse/programs/keeper/CMakeLists.txt

36 lines
1.3 KiB
CMake
Raw Normal View History

2021-05-12 10:39:07 +00:00
set(CLICKHOUSE_KEEPER_SOURCES
keeper_main.cpp
2021-05-12 10:39:07 +00:00
Keeper.cpp
)
set (CLICKHOUSE_KEEPER_LINK
PRIVATE
clickhouse_common_config
clickhouse_common_io
clickhouse_common_zookeeper
daemon
clickhouse-keeper-converter-lib
clickhouse-keeper-client-lib
clickhouse_functions
2021-05-12 10:39:07 +00:00
dbms
)
clickhouse_program_add(keeper)
2021-05-12 13:04:34 +00:00
2022-03-11 14:47:07 +00:00
install(FILES keeper_config.xml DESTINATION "${CLICKHOUSE_ETC_DIR}/clickhouse-keeper" COMPONENT clickhouse-keeper)
2022-03-03 20:27:46 +00:00
2022-03-11 14:47:07 +00:00
if (BUILD_STANDALONE_KEEPER)
2022-09-27 07:29:18 +00:00
# Straight list of all required sources
clickhouse_add_executable(clickhouse-keeper ${CLICKHOUSE_KEEPER_SOURCES})
2022-03-11 14:47:07 +00:00
target_link_libraries(clickhouse-keeper PUBLIC ${CLICKHOUSE_KEEPER_LINK})
2022-03-11 14:47:07 +00:00
set_target_properties(clickhouse-keeper PROPERTIES RUNTIME_OUTPUT_DIRECTORY ../)
if (SPLIT_DEBUG_SYMBOLS)
clickhouse_split_debug_symbols(TARGET clickhouse-keeper DESTINATION_DIR ${CMAKE_CURRENT_BINARY_DIR}/../${SPLITTED_DEBUG_SYMBOLS_DIR} BINARY_PATH ../clickhouse-keeper)
2022-03-23 14:14:30 +00:00
else()
clickhouse_make_empty_debug_info_for_nfpm(TARGET clickhouse-keeper DESTINATION_DIR ${CMAKE_CURRENT_BINARY_DIR}/../${SPLITTED_DEBUG_SYMBOLS_DIR})
2022-03-23 14:14:30 +00:00
install(TARGETS clickhouse-keeper RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
endif()
2022-03-11 14:47:07 +00:00
endif()