2019-03-04 17:47:31 +00:00
|
|
|
set(CLICKHOUSE_SERVER_SOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/HTTPHandler.cpp
|
2019-11-24 15:43:53 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/HTTPHandlerFactory.cpp
|
2019-03-04 17:47:31 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/InterserverIOHTTPHandler.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MetricsTransmitter.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/NotFoundHandler.cpp
|
2019-11-24 15:43:53 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PrometheusMetricsWriter.cpp
|
2019-11-24 12:06:10 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PrometheusRequestHandler.cpp
|
2019-03-04 17:47:31 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ReplicasStatusHandler.cpp
|
2020-04-04 08:57:16 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/StaticRequestHandler.cpp
|
2019-03-04 17:47:31 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Server.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TCPHandler.cpp
|
2019-11-14 02:20:06 +00:00
|
|
|
)
|
2018-06-05 20:09:51 +00:00
|
|
|
|
2019-11-02 10:20:46 +00:00
|
|
|
set(CLICKHOUSE_SERVER_SOURCES
|
|
|
|
${CLICKHOUSE_SERVER_SOURCES}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MySQLHandler.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MySQLHandlerFactory.cpp
|
|
|
|
)
|
2019-07-09 14:59:52 +00:00
|
|
|
|
2020-05-08 14:11:19 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
PUBLIC
|
|
|
|
daemon
|
|
|
|
)
|
2018-11-21 19:20:27 +00:00
|
|
|
|
2019-03-04 17:47:31 +00:00
|
|
|
clickhouse_program_add(server)
|
2018-06-05 20:09:51 +00:00
|
|
|
|
2019-01-25 20:02:03 +00:00
|
|
|
if (GLIBC_COMPATIBILITY)
|
2018-11-16 12:22:51 +00:00
|
|
|
set (GLIBC_MAX_REQUIRED 2.4 CACHE INTERNAL "")
|
2019-01-18 15:19:53 +00:00
|
|
|
# temporary disabled. to enable - change 'exit 0' to 'exit $a'
|
|
|
|
add_test(NAME GLIBC_required_version COMMAND bash -c "readelf -s ${CMAKE_CURRENT_BINARY_DIR}/../clickhouse-server | perl -nE 'END {exit 0 if $a} ++$a, print if /\\x40GLIBC_(\\S+)/ and pack(q{C*}, split /\\./, \$1) gt pack q{C*}, split /\\./, q{${GLIBC_MAX_REQUIRED}}'")
|
|
|
|
|
|
|
|
#add_test(NAME GLIBC_required_version COMMAND bash -c "readelf -s ${CMAKE_CURRENT_BINARY_DIR}/../clickhouse-server | grep '@GLIBC' | grep -oP 'GLIBC_[\\d\\.]+' | sort | uniq | sort --version-sort --reverse | perl -lnE 'warn($_), exit 1 if $_ gt q{GLIBC_${GLIBC_MAX_REQUIRED}}'") # old
|
2018-06-07 14:42:38 +00:00
|
|
|
endif ()
|
2018-06-05 20:09:51 +00:00
|
|
|
|
2019-03-04 17:47:31 +00:00
|
|
|
install(FILES config.xml users.xml DESTINATION ${CLICKHOUSE_ETC_DIR}/clickhouse-server COMPONENT clickhouse)
|