summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/psql/CMakeLists.txt
blob: f87a8108b1d0c7478543818dd297e7632a5765e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Generated from psql.pro.

# FIXME cmake FindPostgreSQL is more exhaustive than the check we have for libpq-fe.h
# it also checks for catalog/pg_type.h which is a more internal include, we should
# add a way to tell cmake FindPostgreSQL to optionally only look for the libpq-fe.h one
find_package(PostgreSQL)

#####################################################################
## qsqlpsql Plugin:
#####################################################################

add_qt_plugin(qsqlpsql
    TYPE sqldrivers
    SOURCES
        main.cpp
        qsql_psql.cpp qsql_psql_p.h
    DEFINES
        QT_NO_CAST_TO_ASCII
        QT_NO_CAST_FROM_ASCII
    LIBRARIES
        Qt::CorePrivate
        Qt::SqlPrivate
        PostgreSQL::PostgreSQL
    # OTHER_FILES = "psql.json"
    # PLUGIN_CLASS_NAME = "QPSQLDriverPlugin"
    # _LOADED = "qt_plugin"
)