Post-build events in Qt Creator?

2019-06-15 19:10发布

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?

标签: qt-creator
2条回答
beautiful°
2楼-- · 2019-06-15 19:52

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.

查看更多
女痞
3楼-- · 2019-06-15 19:53

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

查看更多
登录 后发表回答