Copy files with qmake to ouput directory from an external directory?
-
I use this in my .pro files to copy files to the build output directory:
@DESTDIR = ../bin__output__
assets.path = $$DESTDIR/assets
assets.files += $$files(assets/.)INSTALLS += assets@
Now I want to copy files that are located in "/usr/lib..." into the build ouput directory. Of course I want to copy them only if they do not already exist or if they have been modified in the build output directory.
And I want to do this on Linux (and then on Windows).I checked a few suggestions but none of them worked like these "here":http://stackoverflow.com/questions/3984104/qmake-how-to-copy-a-file-to-the-output.
-
Hi,
This "post":http://qt-project.org/forums/viewthread/48490/#198704 might be of help
-
Yes, it calls the platform copy functions so you can give it any path you want