PDA

View Full Version : Installing libs/headers with qmake



ghorwin
7th May 2007, 18:12
Hi there,

in my qmake pro file, I want to install the library binary to some path and the header files to some other path. So far I can install the library file with



target.path += mylibrary/libs
INSTALLS += target


but how do I set the headers? I tried
INSTALLS += target headers but that doesn't work.

Andreas

fullmetalcoder
7th May 2007, 18:18
As stated by the docs (http://doc.trolltech.com/4.2/qmake-environment-reference.html#installs), you can add several custom install targets...


headers.files = #your files here...
headers.target = mylibrary/include

INSTALLS += headers

Hope this helps. :)

wysota
7th May 2007, 20:01
Take a look here:
http://www.qtcentre.org/forum/f-qt-software-16/t-wwwidgets-6675.html
The bundle there performs headers and binaries installation using qmake.