Quote Originally Posted by wysota View Post
Qt won't create pkg-config files for you.
Wrong.

Try this:
Qt Code:
  1. TEMPLATE = lib
  2. CONFIG += create_pc
  3.  
  4. HEADERS = thing.h
  5. SOURCES = thing.cpp
  6.  
  7. headers.path = /usr/include/yourlib
  8. headers.files = thing.h
  9.  
  10. target.path = /usr/lib
  11.  
  12. QMAKE_PKGCONFIG_NAME = yourlibname
  13. QMAKE_PKGCONFIG_DESCRIPTION = yourlib description
  14. QMAKE_PKGCONFIG_LIBDIR = $$target.path
  15. QMAKE_PKGCONFIG_INCDIR = $$headers.path
  16. QMAKE_PKGCONFIG_DESTDIR = pkgconfig
To copy to clipboard, switch view to plain text mode