blob: 2f55ab49500ced48753e4fcd5cd06dd4b14dd562 (
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
28
29
30
31
32
33
34
35
36
|
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
qt_find_package(PostgreSQL)
#####################################################################
## QPSQLDriverPlugin Plugin:
#####################################################################
qt_internal_add_plugin(QPSQLDriverPlugin
OUTPUT_NAME qsqlpsql
PLUGIN_TYPE sqldrivers
SOURCES
main.cpp
qsql_psql.cpp qsql_psql_p.h
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
QT_NO_CONTEXTLESS_CONNECT
LIBRARIES
PostgreSQL::PostgreSQL
Qt::Core
Qt::CorePrivate
Qt::SqlPrivate
)
# PostgreSQL delivers header files that are not a part of PostgreSQL itself. When precompiled
# headers are processed, MinGW uses 'pthread.h' from the PostgreSQL installation directory.
# As result, we disable precompile headers for the plugin.
# See also QTBUG-90850.
if(MINGW)
set_target_properties(QPSQLDriverPlugin
PROPERTIES
DISABLE_PRECOMPILE_HEADERS ON
)
endif()
|