Can I have qmake copy all my header files into a directory called 'include'?
-
wrote on 27 Nov 2019, 01:09 last edited by
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?
-
wrote on 27 Nov 2019, 01:55 last edited by
yes
and qmake doesn't make anything. It just prepares the Makefile which does the actual work. -
wrote on 27 Nov 2019, 02:05 last edited by
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.
-
wrote on 27 Nov 2019, 07:23 last edited by beecksche
I like this example on the Qt wiki page.
-
@kitfox Take a look at https://doc.qt.io/qt-5/qmake-advanced-usage.html
1/6