I need to specify different output and intermediate folders in my .pro file for debug and release builds. I created a following test .pro file:
release { messa
Try:
CONFIG(debug, debug|release){ message("debug") } else { message("release") }
the qmake will display "debug" if you are building your project in a debug or debug|release mode, otherwise (i.e.: if you are building it in a release mode) a "release" message will be shown.
qmake
debug
debug|release
release