2022-06-30 21:35:44 +00:00
|
|
|
include(${ClickHouse_SOURCE_DIR}/cmake/split_debug_symbols.cmake)
|
2022-03-10 21:23:28 +00:00
|
|
|
|
2021-03-05 09:38:00 +00:00
|
|
|
set (CLICKHOUSE_LIBRARY_BRIDGE_SOURCES
|
2022-08-03 11:19:13 +00:00
|
|
|
ExternalDictionaryLibraryAPI.cpp
|
|
|
|
ExternalDictionaryLibraryHandler.cpp
|
|
|
|
ExternalDictionaryLibraryHandlerFactory.cpp
|
2021-03-05 09:38:00 +00:00
|
|
|
LibraryBridge.cpp
|
2022-08-03 11:19:13 +00:00
|
|
|
LibraryBridgeHandlerFactory.cpp
|
|
|
|
LibraryBridgeHandlers.cpp
|
|
|
|
library-bridge.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 ()
|
|
|
|
|
2022-07-11 17:19:15 +00:00
|
|
|
clickhouse_add_executable(clickhouse-library-bridge ${CLICKHOUSE_LIBRARY_BRIDGE_SOURCES})
|
2021-03-05 09:38:00 +00:00
|
|
|
|
|
|
|
target_link_libraries(clickhouse-library-bridge PRIVATE
|
2021-04-07 07:16:50 +00:00
|
|
|
daemon
|
2021-03-05 09:38:00 +00:00
|
|
|
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 ..)
|
|
|
|
|
2022-06-30 21:35:44 +00:00
|
|
|
if (SPLIT_DEBUG_SYMBOLS)
|
|
|
|
clickhouse_split_debug_symbols(TARGET clickhouse-library-bridge DESTINATION_DIR ${CMAKE_CURRENT_BINARY_DIR}/../${SPLITTED_DEBUG_SYMBOLS_DIR} BINARY_PATH ../clickhouse-library-bridge)
|
2022-03-16 11:53:15 +00:00
|
|
|
else()
|
2022-06-30 21:35:44 +00:00
|
|
|
clickhouse_make_empty_debug_info_for_nfpm(TARGET clickhouse-library-bridge DESTINATION_DIR ${CMAKE_CURRENT_BINARY_DIR}/../${SPLITTED_DEBUG_SYMBOLS_DIR})
|
2022-03-10 21:23:28 +00:00
|
|
|
install(TARGETS clickhouse-library-bridge RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
|
|
|
endif()
|