mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
21 lines
855 B
CMake
21 lines
855 B
CMake
set(CLICKHOUSE_CLIENT_SOURCES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Client.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ConnectionParameters.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Suggest.cpp
|
|
)
|
|
|
|
set(CLICKHOUSE_CLIENT_LINK PRIVATE clickhouse_common_config clickhouse_functions clickhouse_aggregate_functions clickhouse_common_io clickhouse_parsers string_utils ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
|
|
|
include(CheckSymbolExists)
|
|
check_symbol_exists(readpassphrase readpassphrase.h HAVE_READPASSPHRASE)
|
|
configure_file(config_client.h.in ${ConfigIncludePath}/config_client.h)
|
|
|
|
if(NOT HAVE_READPASSPHRASE)
|
|
add_subdirectory(readpassphrase)
|
|
list(APPEND CLICKHOUSE_CLIENT_LINK PRIVATE readpassphrase)
|
|
endif()
|
|
|
|
clickhouse_program_add(client)
|
|
|
|
install (FILES clickhouse-client.xml DESTINATION ${CLICKHOUSE_ETC_DIR}/clickhouse-client COMPONENT clickhouse-client RENAME config.xml)
|