summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/link_pkgconfig.prf
blob: d70e5de104802f123a60e3da5e9a8d87fc9906b1 (plain)
1
2
3
4
5
6
7
# handle pkg-config files
isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config
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)
}