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.
This "post":http://qt-project.org/forums/viewthread/48490/#198704 might be of help
Thanx. The solution in your link doesn't look any different than the one in the link I've posted. Does it really work for files/directories that are outside of the project tree?
It's too late for me to try today.
Yes, it calls the platform copy functions so you can give it any path you want