ClickHouse/dbms/src/Client/CMakeLists.txt
2016-02-08 00:58:58 +03:00

15 lines
580 B
CMake

add_executable(clickhouse-client Client.cpp)
add_executable(clickhouse-benchmark Benchmark.cpp)
target_link_libraries (clickhouse-client dbms readline libboost_program_options.a)
target_link_libraries (clickhouse-benchmark dbms libboost_program_options.a)
INSTALL(TARGETS clickhouse-client RUNTIME DESTINATION bin COMPONENT clickhouse-client)
INSTALL(FILES config.xml DESTINATION /etc/clickhouse-client COMPONENT clickhouse-client)
INSTALL(TARGETS clickhouse-benchmark RUNTIME DESTINATION bin COMPONENT clickhouse-benchmark)
IF(TESTS)
add_subdirectory (tests)
ENDIF(TESTS)