2020-12-10 00:36:31 +00:00
|
|
|
set(LIBPQ_SOURCE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libpq)
|
|
|
|
|
|
|
|
set(SRCS
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-auth.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-auth-scram.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-connect.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-exec.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-lobj.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-misc.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-print.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-protocol2.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-protocol3.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-secure.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-secure-common.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/fe-secure-openssl.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/legacy-pqsignal.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/libpq-events.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/pqexpbuffer.c
|
|
|
|
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/scram-common.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/sha2_openssl.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/md5.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/saslprep.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/unicode_norm.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/ip.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/jsonapi.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/wchar.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/base64.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/link-canary.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/fe_memutils.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/string.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/pg_get_line.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/stringinfo.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/psprintf.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/common/encnames.c
|
2020-12-29 06:41:55 +00:00
|
|
|
${LIBPQ_SOURCE_DIR}/common/logging.c
|
2020-12-10 00:36:31 +00:00
|
|
|
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/snprintf.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/strlcpy.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/strerror.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/inet_net_ntop.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/getpeereid.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/chklocale.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/noblock.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/pg_strong_random.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/pgstrcasecmp.c
|
|
|
|
${LIBPQ_SOURCE_DIR}/port/thread.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(libpq ${SRCS})
|
|
|
|
|
|
|
|
target_include_directories (libpq PUBLIC ${LIBPQ_SOURCE_DIR})
|
|
|
|
target_include_directories (libpq PUBLIC ${LIBPQ_SOURCE_DIR}/include)
|
2020-12-14 21:33:02 +00:00
|
|
|
target_include_directories (libpq PRIVATE ${LIBPQ_SOURCE_DIR}/configs)
|
2020-12-10 00:36:31 +00:00
|
|
|
|
|
|
|
target_link_libraries (libpq PRIVATE ssl)
|