ClickHouse/programs/library-bridge/CMakeLists.txt

25 lines
677 B
CMake
Raw Normal View History

2021-03-05 09:38:00 +00:00
set (CLICKHOUSE_LIBRARY_BRIDGE_SOURCES
library-bridge.cpp
library-log.cpp
LibraryBridge.cpp
Handlers.cpp
HandlerFactory.cpp
SharedLibraryHandler.cpp
2021-03-06 18:21:40 +00:00
SharedLibraryHandlerFactory.cpp
2021-03-05 09:38:00 +00:00
)
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
dbms
2021-03-12 21:12:34 +00:00
bridge
2021-03-05 09:38:00 +00:00
)
set_target_properties(clickhouse-library-bridge PROPERTIES RUNTIME_OUTPUT_DIRECTORY ..)
install(TARGETS clickhouse-library-bridge RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)