Does qmake have support for pkg-config?

Yes, simply add link_pkgconfig to the CONFIG entry in your .pro file and then add pkg-config configurations to the PKGCONFIG variable, e.g:

  1. CONFIG +=link_pkgconfig
  2. TEMPLATE = app
  3. TARGET =
  4. DEPENDPATH += .
  5. INCLUDEPATH += .
  6. PKGCONFIG = gtk+-2.0
  7.  
  8. # Input
  9. SOURCES += main.cpp

See the documentation [qt.nokia.com].

No comments

Write a comment

Sorry, you must be logged in to post a comment.