mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
32 lines
1.1 KiB
CMake
32 lines
1.1 KiB
CMake
add_library (clickhouse-odbc-bridge-lib
|
|
PingHandler.cpp
|
|
MainHandler.cpp
|
|
ColumnInfoHandler.cpp
|
|
HandlerFactory.cpp
|
|
ODBCBridge.cpp
|
|
validateODBCConnectionString.cpp
|
|
)
|
|
|
|
target_link_libraries (clickhouse-odbc-bridge-lib clickhouse_common_io daemon dbms)
|
|
target_include_directories (clickhouse-odbc-bridge-lib PUBLIC ${ClickHouse_SOURCE_DIR}/libs/libdaemon/include)
|
|
|
|
if (USE_POCO_SQLODBC)
|
|
target_link_libraries (clickhouse-odbc-bridge-lib ${Poco_SQLODBC_LIBRARY})
|
|
target_include_directories (clickhouse-odbc-bridge-lib SYSTEM PRIVATE ${ODBC_INCLUDE_DIRECTORIES} ${Poco_SQLODBC_INCLUDE_DIRS})
|
|
endif ()
|
|
|
|
if (USE_POCO_DATAODBC)
|
|
target_link_libraries (clickhouse-odbc-bridge-lib ${Poco_DataODBC_LIBRARY})
|
|
target_include_directories (clickhouse-odbc-bridge-lib SYSTEM PRIVATE ${ODBC_INCLUDE_DIRECTORIES} ${Poco_DataODBC_INCLUDE_DIRS})
|
|
endif()
|
|
|
|
|
|
if (ENABLE_TESTS)
|
|
add_subdirectory (tests)
|
|
endif ()
|
|
|
|
if (CLICKHOUSE_SPLIT_BINARY)
|
|
add_executable (clickhouse-odbc-bridge odbc-bridge.cpp)
|
|
target_link_libraries (clickhouse-odbc-bridge clickhouse-odbc-bridge-lib)
|
|
endif ()
|