2021-04-24 19:47:52 +00:00
|
|
|
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/libpqxx")
|
2020-12-10 00:36:31 +00:00
|
|
|
|
|
|
|
set (SRCS
|
2021-04-24 19:47:52 +00:00
|
|
|
"${LIBRARY_DIR}/src/array.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/binarystring.cxx"
|
2024-09-12 19:24:27 +00:00
|
|
|
"${LIBRARY_DIR}/src/blob.cxx"
|
2021-04-24 19:47:52 +00:00
|
|
|
"${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"
|
2024-09-12 19:24:27 +00:00
|
|
|
"${LIBRARY_DIR}/src/params.cxx"
|
2021-04-24 19:47:52 +00:00
|
|
|
"${LIBRARY_DIR}/src/pipeline.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/result.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/robusttransaction.cxx"
|
2024-09-12 19:24:27 +00:00
|
|
|
"${LIBRARY_DIR}/src/row.cxx"
|
2021-04-24 19:47:52 +00:00
|
|
|
"${LIBRARY_DIR}/src/sql_cursor.cxx"
|
2024-09-12 19:24:27 +00:00
|
|
|
"${LIBRARY_DIR}/src/strconv.cxx"
|
2021-04-24 19:47:52 +00:00
|
|
|
"${LIBRARY_DIR}/src/stream_from.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/stream_to.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/subtransaction.cxx"
|
2024-09-12 19:24:27 +00:00
|
|
|
"${LIBRARY_DIR}/src/time.cxx"
|
2021-04-24 19:47:52 +00:00
|
|
|
"${LIBRARY_DIR}/src/transaction.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/transaction_base.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/util.cxx"
|
|
|
|
"${LIBRARY_DIR}/src/version.cxx"
|
2024-09-12 19:24:27 +00:00
|
|
|
"${LIBRARY_DIR}/src/wait.cxx"
|
2020-12-14 21:33:02 +00:00
|
|
|
)
|
2020-12-10 00:36:31 +00:00
|
|
|
|
2024-09-12 18:55:35 +00:00
|
|
|
add_library(_libpqxx ${SRCS})
|
2022-01-20 14:23:21 +00:00
|
|
|
target_link_libraries(_libpqxx PUBLIC ch_contrib::libpq)
|
|
|
|
target_include_directories (_libpqxx SYSTEM BEFORE PUBLIC "${LIBRARY_DIR}/include")
|
2020-12-14 21:33:02 +00:00
|
|
|
|
2022-01-20 14:23:21 +00:00
|
|
|
add_library(ch_contrib::libpqxx ALIAS _libpqxx)
|