ClickHouse/programs/odbc-bridge/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1016 B
CMake
Raw Normal View History

include(${ClickHouse_SOURCE_DIR}/cmake/split_debug_symbols.cmake)
2022-03-10 21:23:28 +00:00
set (CLICKHOUSE_ODBC_BRIDGE_SOURCES
ColumnInfoHandler.cpp
IdentifierQuoteHandler.cpp
MainHandler.cpp
2024-03-24 16:21:53 +00:00
ODBCSource.cpp
ODBCSink.cpp
ODBCBridge.cpp
ODBCHandlerFactory.cpp
PingHandler.cpp
SchemaAllowedHandler.cpp
getIdentifierQuote.cpp
odbc-bridge.cpp
validateODBCConnectionString.cpp
2024-03-09 06:55:59 +00:00
createFunctionBaseCast.cpp
2019-03-04 17:47:31 +00:00
)
clickhouse_add_executable(clickhouse-odbc-bridge ${CLICKHOUSE_ODBC_BRIDGE_SOURCES})
2019-03-04 17:47:31 +00:00
target_link_libraries(clickhouse-odbc-bridge PRIVATE
2021-04-07 07:16:50 +00:00
daemon
2020-11-04 20:44:43 +00:00
dbms
2021-03-12 21:47:07 +00:00
bridge
2021-04-07 17:11:09 +00:00
clickhouse_parsers
2022-01-17 20:59:41 +00:00
ch_contrib::nanodbc
2022-01-17 21:03:55 +00:00
ch_contrib::unixodbc
)
set_target_properties(clickhouse-odbc-bridge PROPERTIES RUNTIME_OUTPUT_DIRECTORY ..)
2021-03-22 11:40:29 +00:00
target_compile_options (clickhouse-odbc-bridge PRIVATE -Wno-reserved-id-macro -Wno-keyword-macro)
2019-03-04 17:47:31 +00:00
2024-03-31 00:59:36 +00:00
install(TARGETS clickhouse-odbc-bridge RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
2019-03-04 17:47:31 +00:00
if(ENABLE_TESTS)
add_subdirectory(tests)
endif()