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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With