Unsolved Can I have qmake copy all my header files into a directory called 'include'?
-
I'm using qmake to build a library and would like as part of the build process to copy all the .h files in my source tree to a separate directory called 'include' for end users to use. Is there a way to do this?
-
yes
and qmake doesn't make anything. It just prepares the Makefile which does the actual work. -
How would I set things up the copy the files?
-
You can copy the files using the post build setup in qmake. You can search in google. You will get a few links on how to do this.
-
I like this example on the Qt wiki page.
-
@kitfox Take a look at https://doc.qt.io/qt-5/qmake-advanced-usage.html