copy - What is the most portable way of copying a file to the output project directory? -


I want to copy an XML file into output directory (debug / release). I do not want to use the resource system because it does not allow me to modify the file without conjunction. Shows how to open files in a portable way, but I could not find a good solution to copy it (obviously I want to automate it in some way). Solutions, such as using a copy command of each operating system, may suggest better solutions.

Installed keywords in your qmake file (see)

  stuff_to_copy. Path = / path / to / put / it / in stuff_to_copy.files + file1 stuff_to_copy.files + = install file1 + = stuff_to_copy   

After doing this, you will need to run part of your build process As "installing" will need to be run so that the files can actually be copied.

Comments