
Originally Posted by
wysota
Qt won't create pkg-config files for you.
Wrong.
Try this:
TEMPLATE = lib
CONFIG += create_pc
HEADERS = thing.h
SOURCES = thing.cpp
headers.path = /usr/include/yourlib
headers.files = thing.h
target.path = /usr/lib
QMAKE_PKGCONFIG_NAME = yourlibname
QMAKE_PKGCONFIG_DESCRIPTION = yourlib description
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
TEMPLATE = lib
CONFIG += create_pc
HEADERS = thing.h
SOURCES = thing.cpp
headers.path = /usr/include/yourlib
headers.files = thing.h
target.path = /usr/lib
QMAKE_PKGCONFIG_NAME = yourlibname
QMAKE_PKGCONFIG_DESCRIPTION = yourlib description
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
To copy to clipboard, switch view to plain text mode
Bookmarks