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...:confused:
Printable View
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...:confused:
You could try something like:Code:
header_files.files = $$HEADERS header_files.path = <path> INSTALLS += header_files
http://doc.trolltech.com/3.3/qmake-m...ml#Environment
Works like a charm :D 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.Code:
HEADERS+=commondir/*.h
An alternative is to use Jacek's solution but instead of INSTALLS make use of QMAKE_EXTRA_TARGETS.