2016-02-07 21:58:58 +00:00
|
|
|
add_executable(clickhouse-server
|
|
|
|
Server.cpp
|
|
|
|
HTTPHandler.cpp
|
|
|
|
TCPHandler.cpp
|
|
|
|
InterserverIOHTTPHandler.cpp
|
|
|
|
MetricsTransmitter.cpp
|
|
|
|
UsersConfigReloader.cpp
|
|
|
|
StatusFile.cpp
|
|
|
|
ReplicasStatusHandler.cpp)
|
|
|
|
|
2016-07-29 16:46:11 +00:00
|
|
|
# Adding init.d support
|
2016-02-07 21:58:58 +00:00
|
|
|
INCLUDE(${PROJECT_SOURCE_DIR}/tools/init.d/CMakeLists.init)
|
|
|
|
|
|
|
|
target_link_libraries (clickhouse-server daemon)
|
|
|
|
|
|
|
|
INSTALL(TARGETS clickhouse-server RUNTIME DESTINATION bin COMPONENT clickhouse-server)
|
|
|
|
|
2016-02-08 21:20:55 +00:00
|
|
|
INSTALL(
|
|
|
|
FILES config.xml users.xml
|
|
|
|
DESTINATION /etc/clickhouse-server
|
|
|
|
COMPONENT clickhouse-server)
|
|
|
|
|
|
|
|
INSTALL(
|
2016-03-01 17:53:26 +00:00
|
|
|
FILES ${CLICKHOUSE_PRIVATE_DIR}/Server/metrika/config.xml ${CLICKHOUSE_PRIVATE_DIR}/Server/metrika/users.xml
|
2016-02-08 21:20:55 +00:00
|
|
|
DESTINATION /etc/clickhouse-server/metrika
|
|
|
|
COMPONENT clickhouse-server
|
|
|
|
OPTIONAL)
|
|
|
|
|
|
|
|
INSTALL(
|
|
|
|
FILES metrika.conf
|
|
|
|
DESTINATION /etc/security/limits.d
|
|
|
|
COMPONENT clickhouse-server)
|
|
|
|
|
2016-02-07 21:58:58 +00:00
|
|
|
CREATE_INIT_SCRIPT(clickhouse-server clickhouse-server)
|
|
|
|
|