I’m still figuring out how to do the same thing with cmake, but various bloggers and comments appear to be promising that it’ll be even more easy.
But this is a message for probably all Nokia teams who are making Qt-based libraries:
First open your src/src.pro file and add this stuff:
CONFIG += create_pc create_prl QMAKE_PKGCONFIG_REQUIRES = QtGui QMAKE_PKGCONFIG_DESTDIR = pkgconfig INSTALLS += target headers
Now open your debian/$package-dev.install file and add this line:
You’ll be doing all the autotools people a tremendous favor.
Next, open the README file and document that you need to use qmake-qt4 on Debian or make either qmake-qt3 or qmake-qt4 work flawlessly with your build environment. Perhaps also mention how to set the install prefix, how to make qmake find and install .pc files in another location, stuff like that. I find that this is lacking for almost every Qt-based library.
You’ll be doing everybody who wants to use your software a tremendous favor.