Qt Creator 中的构建后事件?

发布于 10-12 16:03 字数 73 浏览 6 评论 0原文

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月亮邮递员2024-10-19 16:03:55

添加执行脚本以复制文件作为构建步骤,如下所示,
替代文字

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

无法言说的痛2024-10-19 16:03:55

您将在这里找到可以在项目文件 (.pro) 中使用的所有变量: http://doc.qt.nokia.com/4.7/qmake-variable-reference.html

您正在搜索的是:DESTDIR

无论如何,在 QtCreator 中,您可以通过在“项目”选项卡中添加/删除指令来自定义所有构建和链接操作。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文