I want to retrieve the value of one of the CONFIG parameters that is added (debug or release) to use in directory construction.
For example, I am using TARGET as:

Qt Code:
  1. MOC_DIR += $${SolutionDir}/Build/Debug/tempFiles/$$TARGET/mocfiles
To copy to clipboard, switch view to plain text mode 

I'd like to replace Debug with the value added to the config, so it would look like
Qt Code:
  1. MOC_DIR += $${SolutionDir}/Build/$$CONFIG/tempFiles/$$TARGET/mocfiles
To copy to clipboard, switch view to plain text mode 

What is the best approach? Thanks