mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 07:32:27 +00:00
27 lines
711 B
CMake
27 lines
711 B
CMake
set (CLICKHOUSE_LIBRARY_BRIDGE_SOURCES
|
|
library-bridge.cpp
|
|
library-log.cpp
|
|
LibraryBridge.cpp
|
|
Handlers.cpp
|
|
HandlerFactory.cpp
|
|
SharedLibraryHandler.cpp
|
|
SharedLibraryHandlerFactory.cpp
|
|
)
|
|
|
|
if (OS_LINUX)
|
|
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-export-dynamic")
|
|
endif ()
|
|
|
|
add_executable(clickhouse-library-bridge ${CLICKHOUSE_LIBRARY_BRIDGE_SOURCES})
|
|
|
|
target_link_libraries(clickhouse-library-bridge PRIVATE
|
|
daemon
|
|
dbms
|
|
clickhouse_parsers
|
|
bridge
|
|
)
|
|
|
|
set_target_properties(clickhouse-library-bridge PROPERTIES RUNTIME_OUTPUT_DIRECTORY ..)
|
|
|
|
install(TARGETS clickhouse-library-bridge RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|