Qt Creator 中的构建后事件? [英] Post-build events in Qt Creator?
问题描述
在 Qt Creator 中是否可以有构建后事件(如在 VC++ 中)?特别是,我想在构建后将可执行文件复制到不同的文件夹.可以吗?
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?
推荐答案
您将在此处找到您可以在项目文件 (.pro) 中使用的所有变量:http://doc.qt.nokia.com/4.7/qmake-variable-reference.html.
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.
您要搜索的是:DESTDIR
The one you are searching for is: DESTDIR
无论如何,在 QtCreator 中,您可以通过在项目选项卡中添加/删除指令来自定义所有构建和链接操作.
Anyway, in QtCreator you can customize all the build and link operation by adding/removing instructions in the Project tab.
这篇关于Qt Creator 中的构建后事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!