[Qt-creator] How to put custom build steps into Git?

Orgad Shaneh orgads at gmail.com
Fri Jul 6 17:00:01 CEST 2018


On Fri, Jul 6, 2018 at 5:48 PM Murphy, Sean <smurphy at walbro.com> wrote:

> > That is something that should be done by the build system IMHO
>
> Can you expand on this part? By build system, I assume you mean qmake?
> If that's what you meant, I'm all for doing it that way as well, how would
> I
> go about adding what I'm looking for into the .pro file?
>

You can do it by:
git_ver.commands = your-app-that-generates-the-version-header
git_ver.target = your-header.h
QMAKE_EXTRA_TARGETS += git_ver
PRE_TARGETDEPS = $$git_ver.target # This should not be needed if cpp files
use this header.

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180706/673c6598/attachment.html>


More information about the Qt-creator mailing list