2018-08-27 14:39:20 +00:00
|
|
|
add_library (clickhouse-benchmark-lib ${LINK_MODE} Benchmark.cpp)
|
2018-11-28 14:41:51 +00:00
|
|
|
target_link_libraries (clickhouse-benchmark-lib PRIVATE clickhouse_aggregate_functions clickhouse-client-lib clickhouse_common_config clickhouse_common_io ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
2018-06-06 20:21:58 +00:00
|
|
|
target_include_directories (clickhouse-benchmark-lib SYSTEM PRIVATE ${PCG_RANDOM_INCLUDE_DIR})
|
2018-06-05 20:09:51 +00:00
|
|
|
|
|
|
|
if (CLICKHOUSE_SPLIT_BINARY)
|
|
|
|
add_executable (clickhouse-benchmark clickhouse-benchmark.cpp)
|
2018-11-21 19:20:27 +00:00
|
|
|
target_link_libraries (clickhouse-benchmark PRIVATE clickhouse-benchmark-lib clickhouse_aggregate_functions)
|
2019-01-28 16:36:39 +00:00
|
|
|
install (TARGETS clickhouse-benchmark ${CLICKHOUSE_ALL_TARGETS} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
2018-06-05 20:09:51 +00:00
|
|
|
endif ()
|