Specifying pre-build steps in Qt projects files
-
I need to add pre-builds steps to my Qt projects files (*.pro). I want to automatically and reliably run a script that generates version information into a header (that is included in my code).
I found QMAKE_POST_LINK and QMAKE_PRE_LINK but nothing similar for build steps.
On windows side I am generating .vcxproj files from .pro files so adding the build step to my Visual projects directly/manually would be a bad idea.
Is it true that there is no way to specify (pre-)build steps in Qt project files?
-
In Qt Creator, you can define custom steps, just in project tab, using up arrow and down arrow to rearrange them as you like.
-
Unfortunately I do not use QtCreator.
Is there any solution using qmake only?
-
I created a suggestions: https://bugreports.qt-project.org/browse/QTBUG-35467