mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Add cmake rules for performance test launcher
This commit is contained in:
parent
36b42cb35b
commit
842ebadc0e
@ -5,6 +5,9 @@ install (FILES config.xml DESTINATION ${CLICKHOUSE_ETC_DIR}/clickhouse-client CO
|
||||
add_library (clickhouse-benchmark Benchmark.cpp)
|
||||
target_link_libraries (clickhouse-benchmark dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
|
||||
add_library (clickhouse-performance-test PerformanceTest.cpp)
|
||||
target_link_libraries (clickhouse-performance-test dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
add_subdirectory (tests)
|
||||
endif ()
|
||||
|
@ -22,9 +22,9 @@ target_link_libraries(clickhouse
|
||||
clickhouse-client
|
||||
clickhouse-local
|
||||
clickhouse-benchmark
|
||||
clickhouse-performance-test
|
||||
clickhouse-extract-from-config)
|
||||
INSTALL(TARGETS clickhouse RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
||||
|
||||
# make symbolic links to concrete clickhouse applications
|
||||
macro(install_symlink_to_clickhouse app)
|
||||
INSTALL(CODE "execute_process(COMMAND ln -sf clickhouse ${app} WORKING_DIRECTORY \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}\" )" COMPONENT ${app})
|
||||
@ -34,6 +34,7 @@ install_symlink_to_clickhouse(clickhouse-server)
|
||||
install_symlink_to_clickhouse(clickhouse-client)
|
||||
install_symlink_to_clickhouse(clickhouse-local)
|
||||
install_symlink_to_clickhouse(clickhouse-benchmark)
|
||||
install_symlink_to_clickhouse(clickhouse-performance-test)
|
||||
|
||||
INSTALL(
|
||||
FILES config.xml users.xml
|
||||
|
Loading…
Reference in New Issue
Block a user