Warning, /libraries/kdb/src/drivers/postgresql/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_feature_info(BUILD_POSTGRESQL_DB_DRIVER TRUE ${BUILD_POSTGRESQL_DB_DRIVER_DESC})
0002
0003 include_directories(
0004 ${PostgreSQL_INCLUDE_DIRS}
0005 )
0006
0007 set(kdb_postgresqldriver_SRCS
0008 postgresql_debug.cpp
0009 PostgresqlTypes.cpp
0010 PostgresqlDriver.cpp
0011 PostgresqlConnection.cpp
0012 PostgresqlCursor.cpp
0013 PostgresqlKeywords.cpp
0014 PostgresqlConnection_p.cpp
0015 PostgresqlPreparedStatement.cpp
0016 kdb_postgresqldriver.json
0017 README
0018 )
0019
0020 if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
0021 set_source_files_properties(PostgresqlTypes.cpp
0022 PROPERTIES
0023 COMPILE_FLAGS " -Wno-undef " # needed because server/c.h uses #if _MSC_VER >= 1400
0024 )
0025 endif()
0026
0027 find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Network)
0028
0029 build_and_install_kdb_driver(postgresql "${kdb_postgresqldriver_SRCS}" "${PostgreSQL_LIBRARIES};Qt5::Network")