QMake - how to copy a file to the output
问题 How can I copy a file from my project to the output directory with qmake? I\'m compiling on Linux but in the future I\'ll compile it on Mac and Windows. 回答1: Here's an example from one of our projects. It shows how to copy files to the DESTDIR for Windows and Linux. linux-g++{ #... EXTRA_BINFILES += \ $${THIRDPARTY_PATH}/gstreamer-0.10/linux/plugins/libgstrtp.so \ $${THIRDPARTY_PATH}/gstreamer-0.10/linux/plugins/libgstvideo4linux2.so for(FILE,EXTRA_BINFILES){ QMAKE_POST_LINK += $$quote(cp $$