title: How can I pass the output of a command as a compiler flag through a Qt project file?
body: <p>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.</p>
  
  <p>I can do it by adding the following compiler flag:
  -DAPP_VERSION="$(git describe HEAD)"</p>
  
  <p>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?</p>
  
  <p>edit:
  I tried adding the following:</p>
  
  <p>QMAKE_CXXFLAGS += -DAPP_VERSION="$(git describe HEAD)"</p>
  
  <p>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. :/</p>