summaryrefslogtreecommitdiffstats
path: root/config.tests/xkbcommon/xkbcommon.pro
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/xkbcommon/xkbcommon.pro')
-rw-r--r--config.tests/xkbcommon/xkbcommon.pro11
1 files changed, 5 insertions, 6 deletions
diff --git a/config.tests/xkbcommon/xkbcommon.pro b/config.tests/xkbcommon/xkbcommon.pro
index facc28e58..e21015b4b 100644
--- a/config.tests/xkbcommon/xkbcommon.pro
+++ b/config.tests/xkbcommon/xkbcommon.pro
@@ -4,14 +4,13 @@ QT = core
DEPENDPATH += .
INCLUDEPATH += .
+CONFIG += link_pkgconfig
+
!contains(QT_CONFIG, no-pkg-config) {
- QMAKE_CFLAGS_XKBCOMMON=$$system(pkg-config --cflags xkbcommon 2>/dev/null)
- QMAKE_LIBS_XKBCOMMON=$$system(pkg-config --libs xkbcommon 2>/dev/null)
+ PKGCONFIG += xkbcommon
+} else {
+ LIBS += -lxkbcommon
}
-QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XKBCOMMON
-QMAKE_CFLAGS += $$QMAKE_CFLAGS_XKBCOMMON
-LIBS += $$QMAKE_LIBS_XKBCOMMON
-
# Input
SOURCES += main.cpp