Martchus
defbb48223
* Make it possible to use shared and static Qt build (installed in the same prefix) at the same time in a project. * This allows compiling shared and static libraries depending on Qt in one step. * Static CMake modules are prefixed with 'Static', eg. 'StaticQt5Core' and provide importet targets as eg. 'Qt5::static::Core'.
26 lines
736 B
Diff
26 lines
736 B
Diff
From 5ae3a0b5e162d00a52fad34142f4c93512f8c2e5 Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Sun, 18 Sep 2016 18:58:25 +0200
|
|
Subject: [PATCH 25/25] Use shared/static version of PostgreSQL
|
|
|
|
---
|
|
config.tests/unix/psql/psql.pro | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/config.tests/unix/psql/psql.pro b/config.tests/unix/psql/psql.pro
|
|
index d0f3761..58f1638 100644
|
|
--- a/config.tests/unix/psql/psql.pro
|
|
+++ b/config.tests/unix/psql/psql.pro
|
|
@@ -1,3 +1,7 @@
|
|
SOURCES = psql.cpp
|
|
CONFIG -= qt dylib
|
|
-LIBS *= -lpq
|
|
+contains(CONFIG, static) {
|
|
+ LIBS *= -lpq -lintl -liconv -lssl -lcrypto -lwldap32 -lshfolder -lwsock32 -lws2_32 -lsecur32 -lgdi32
|
|
+} else {
|
|
+ LIBS *= -lpq
|
|
+}
|
|
--
|
|
2.10.1
|
|
|