summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/link_pkgconfig.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/features/link_pkgconfig.prf')
-rw-r--r--mkspecs/features/link_pkgconfig.prf6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkspecs/features/link_pkgconfig.prf b/mkspecs/features/link_pkgconfig.prf
new file mode 100644
index 0000000..4c528aa
--- /dev/null
+++ b/mkspecs/features/link_pkgconfig.prf
@@ -0,0 +1,6 @@
+# handle pkg-config files
+for(PKGCONFIG_LIB, $$list($$unique(PKGCONFIG))) {
+ QMAKE_CXXFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB)
+ QMAKE_CFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB)
+ LIBS += $$system(pkg-config --libs $$PKGCONFIG_LIB)
+}