如何在 Qt-Creator 中添加自定义构建步骤?
构建我的应用程序后,我想将其复制到特定目录(在 Windows 7 上)。
自定义构建步骤
cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins
但我有错误:
Can't run process "cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins"
这是错误的?
After build my app, i want copy it to specific directory (on Windows 7).
Custom build step
cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins
But I have error:
Can't run process "cmd.exe \c \k copy MyPlugin.dll ..\..\..\HostApp\Debug\plugins"
That's wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种方法是更改 .pro 文件中的构建输出目录。
类似
或者 在您的特定情况下
编辑:
这个问题有一些我的答案的好替代方案。
One way to do it would be to change the build output directory in the .pro file.
Something like
Or in your particular case
Edit:
This question has some good alternatives to my answer.