Hi,
I'm trying to add the output of "git describe" to the about window of my application, so it's easier to find out what version of the application people use.
I can do it by adding the following compiler flag: -DAPP_VERSION="$(git describe HEAD)"
But since the project is based on qmake, I would like to find a way to put this into the Qt project file. Is this possible? And if so, how?
edit: I tried adding the following:
QMAKE_CXXFLAGS += -DAPP_VERSION="$(git describe HEAD)"
But it just gave me "-DAPP_VERSION=", so I suppose I have to use some escape characters, but I don't know which ones and where. :/