mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
85d783c247
* Remove config_common.h * Refactor libcpuid contrib * Remove support for libcpuinfo * Define USE_CPUID in Arcadia * Refactor Poco libraries
49 lines
2.0 KiB
CMake
49 lines
2.0 KiB
CMake
set(CLICKHOUSE_SERVER_SOURCES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/HTTPHandler.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/HTTPHandlerFactory.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/InterserverIOHTTPHandler.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MetricsTransmitter.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/NotFoundHandler.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PrometheusMetricsWriter.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PrometheusRequestHandler.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ReplicasStatusHandler.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/StaticRequestHandler.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Server.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TCPHandler.cpp
|
|
)
|
|
|
|
set(CLICKHOUSE_SERVER_SOURCES
|
|
${CLICKHOUSE_SERVER_SOURCES}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MySQLHandler.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/MySQLHandlerFactory.cpp
|
|
)
|
|
|
|
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
|
|
)
|
|
|
|
clickhouse_program_add(server)
|
|
|
|
if (GLIBC_COMPATIBILITY)
|
|
set (GLIBC_MAX_REQUIRED 2.4 CACHE INTERNAL "")
|
|
# 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
|
|
endif ()
|
|
|
|
install(FILES config.xml users.xml DESTINATION ${CLICKHOUSE_ETC_DIR}/clickhouse-server COMPONENT clickhouse)
|