How to share build step in Qt Creator
Qt Creator has an option to add custom build steps for the project which is cool. However the command line for the additional build step is stored in the .pro.user file which should not be added to version control, because it contains machine specific data. When I push my project to the repo and then clone it in another location the user file is different and the custom build steps are missing. How can I share my custom build steps so the project is built easily on every machine with Qt installed?
Try replacing the custom build steps with QMAKE_POST_LINK
commands (QMAKE_POST_LINK Reference)
They can be linked to a script that can be committed:
win32 {
QMAKE_POST_LINK = install/win/deploy
}
unix {
QMAKE_POST_LINK = install/unix/deploy
}
To create pre-build steps, this is a nice example: Pre-pre-build commands with qmake.
链接地址: http://www.djcxy.com/p/85398.html上一篇: 你如何配置spring来执行重叠的fixedRate任务?
下一篇: 如何在Qt Creator中共享构建步骤