How to share build step in Qt Creator

Qt Creator has the ability to add custom build steps for a project that is cool. However, the command line for the additional build step is stored in a .pro.user file, which should not be added to the version control because it contains data related to the machine. When I click on my project on the repo and then clone it elsewhere, the user file is different and there are no custom build steps. How can I share my custom build steps so that the project is easily created on every computer with Qt installed?

+7
qt qt5 qt-creator qmake
source share
1 answer

Try replacing custom build steps with QMAKE_POST_LINK commands ( QMAKE_POST_LINK Link )

They can be associated with 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 good example: Pre-pre-build commands with qmake .

+4
source share

All Articles