http://stackoverflow.com/questions/3517694/linking-libraries-to-a-qt-project-using-pkg-config-output
http://beaufour.dk/blog/2008/02/using-pkgconfig.html
Using pkg-config in qmake
By beaufour on February 5, 2008 12:24 PM | Permalink | Comments (0)
I saw some random mentions of pkg-config support in qmake lying around on the ‘net, but of course found no documentation about it in Qt. (I even mailed their support dept. which said it did not exist :) ).
Nevertheless it does (at least in Qt 4.3.3). So for example to add the necessary magic to use Alsa, just do this:
CONFIG += link_pkgconfig
PKGCONFIG += alsa
Tags: pkgconfig, qmake, qt
Leave a comment
Sign in to comment on this entry.