Post-build events in Qt Creator?

一笑奈何 提交于 2019-12-12 10:32:54

问题


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?


回答1:


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.




回答2:


Add execution of a script to copy the files as a build step as below,



来源:https://stackoverflow.com/questions/4720937/post-build-events-in-qt-creator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!