Post-build events in Qt Creator?
Is it possible to have post-build events (as in VC++) in Qt Creator? In particular, I would like to copy the executable to a 开发者_开发技巧different folder after it has been built. Can it be done?
Add execution of a script to copy the files as a build step as below,
You will find here all the variables you can use in your project file (.pro): http://doc.qt.nokia.com/4.7/qmake-variable-reference.html.
The one you are searching for is: DESTDIR
Anyway, in QtCreator you can customize all the build and link operation by adding/removing instructions in the Project tab.
精彩评论