Does anybody now how to tell qmake to collect all the header files and put them into a specified directory?
I'm developing a library and i did not find how to tell qmake to install the headers...
Does anybody now how to tell qmake to collect all the header files and put them into a specified directory?
I'm developing a library and i did not find how to tell qmake to install the headers...
You could try something like:Qt Code:
header_files.files = $$HEADERS header_files.path = <path> INSTALLS += header_filesTo copy to clipboard, switch view to plain text mode
http://doc.trolltech.com/3.3/qmake-m...ml#Environment
alizadeh91 (9th December 2012), orb9 (4th May 2006)
Works like a charm Thank you very much.
This only works for me if you do a "make install" - how do I get the headers copied into a common directory as part of the compile process? I tried QMAKE_PRE/POST_LINK = make install but that doesn't work either.
Thanks.
SPQR
Try:
Just be aware you will have to call qmake every time you add a new file to that directory.
An alternative is to use Jacek's solution but instead of INSTALLS make use of QMAKE_EXTRA_TARGETS.
Bookmarks