[SOLVED] Copying all executables to a given directory while using the SUBDIRS qmake template
I'm currently using the SUBDIRS template in qmake to allow the creation of multiple executables in a single project.
Is there a way to tell qmake or Qt Creator to copy all executables created in a single predetermined directory after compilation? I've Googled a bit for it and searched the documentation, but found nothing on that. Thanks!
Here's my .pro file.
@TEMPLATE = subdirs
You can set DESTDIR qmake derective which allow to set directory to build executables there.
I haven't been happy with setting variables in the subdirs .pro-file.
My solution was to create a global .pri file (in the same folder as the subdirs-pro-file) that every other .pro file has to include.
Thanks for the link: I hadn't seen it on my search. I added a line to each .pro file in the subdirs template project.