In a .pro
file, I can set version of application such:
VERSION = <some version>
Is there a way of doing this automatically (e.g. getting the value from Mercurial)?
In a .pro
file, I can set version of application such:
VERSION = <some version>
Is there a way of doing this automatically (e.g. getting the value from Mercurial)?
If you can get the version from a shell command, you can assign it to the variable with the
$$system
qmake function.So, for mercurial, you could try:
Or if you are using the local revision number as the version:
which will only print that number without the uncommitted change indicator ('+').