promoe/features/pkgconfig.prf
2008-10-17 00:25:54 +02:00

10 lines
339 B
Text

# This file is intended replacement for Qt's link_pkgconfig
for(PACKAGE, $$list($$unique(PKGCONFIG))) {
system(pkg-config --exists $$PACKAGE) {
CONFIG += $$PACKAGE
}
}
QMAKE_CXXFLAGS += $$system(pkg-config --cflags $$PKGCONFIG)
QMAKE_CFLAGS += $$system(pkg-config --cflags $$PKGCONFIG)
LIBS += $$system(pkg-config --libs $$PKGCONFIG)