Hello !
I’m trying to append the version number of my app, in the target filename. I tried this [qt-project.org] but it’s not showing.
Here is an extract:
VER_MAJ = 0
VER_MIN = 2
VER_BLD = $$cat(BUILD, lines)
VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_BLD}
message($$VERSION)
TARGET = PMF-Desktop
TEMPLATE = app
The thing is: When I `message`, the version is ok, but the filename is still “PMF_Desktop.exe”. I tried to append it to the “TARGET” variable, or put it in “TARGET_x.y.z =” which BTW I don’t understand (messaging it shows empty line). When I append it to “TARGET”, it’s OK but QtCreator can’t start my app (shows something like: permission denied or file doesn’t exist).
Any idea of how to do it (maybe the way changed with Qt5) and how to use “TARGET_x.y.z” ?
Thank you.
↧