mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
|
set (LIBRARY_DIR ${ClickHouse_SOURCE_DIR}/contrib/libpqxx)
|
||
|
|
||
|
set (SRCS
|
||
|
${LIBRARY_DIR}/src/strconv.cxx
|
||
|
${LIBRARY_DIR}/src/array.cxx
|
||
|
${LIBRARY_DIR}/src/binarystring.cxx
|
||
|
${LIBRARY_DIR}/src/connection.cxx
|
||
|
${LIBRARY_DIR}/src/cursor.cxx
|
||
|
${LIBRARY_DIR}/src/encodings.cxx
|
||
|
${LIBRARY_DIR}/src/errorhandler.cxx
|
||
|
${LIBRARY_DIR}/src/except.cxx
|
||
|
${LIBRARY_DIR}/src/field.cxx
|
||
|
${LIBRARY_DIR}/src/largeobject.cxx
|
||
|
${LIBRARY_DIR}/src/notification.cxx
|
||
|
${LIBRARY_DIR}/src/pipeline.cxx
|
||
|
${LIBRARY_DIR}/src/result.cxx
|
||
|
${LIBRARY_DIR}/src/robusttransaction.cxx
|
||
|
${LIBRARY_DIR}/src/sql_cursor.cxx
|
||
|
${LIBRARY_DIR}/src/stream_from.cxx
|
||
|
${LIBRARY_DIR}/src/stream_to.cxx
|
||
|
${LIBRARY_DIR}/src/subtransaction.cxx
|
||
|
${LIBRARY_DIR}/src/transaction.cxx
|
||
|
${LIBRARY_DIR}/src/transaction_base.cxx
|
||
|
${LIBRARY_DIR}/src/row.cxx
|
||
|
${LIBRARY_DIR}/src/util.cxx
|
||
|
${LIBRARY_DIR}/src/version.cxx
|
||
|
)
|
||
|
|
||
|
add_library(libpqxx ${SRCS})
|
||
|
target_link_libraries(libpqxx PRIVATE ${LIBPQ_LIBRARY})
|
||
|
|
||
|
target_include_directories (libpqxx SYSTEM BEFORE PRIVATE ${LIBRARY_DIR}/include)
|
||
|
target_include_directories (libpqxx PRIVATE ${LIBRARY_DIR}/include/pqxx)
|