mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
8 lines
498 B
CMake
8 lines
498 B
CMake
add_library (clickhouse-format-lib ${LINK_MODE} Format.cpp)
|
|
target_link_libraries (clickhouse-format-lib PRIVATE dbms clickhouse_common_io clickhouse_parsers ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
|
if (CLICKHOUSE_SPLIT_BINARY)
|
|
add_executable (clickhouse-format clickhouse-format.cpp)
|
|
target_link_libraries (clickhouse-format PRIVATE clickhouse-format-lib)
|
|
install (TARGETS clickhouse-format ${CLICKHOUSE_ALL_TARGETS} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
|
endif ()
|