Add this to the .pro file and add _debug for mac and d to build Windows debugging.
CONFIG += debug_and_release
CONFIG(debug, debug|release) {
mac: TARGET = $$join(TARGET,,,_debug)
win32: TARGET = $$join(TARGET,,,d)
}
CONFIG(xx, yy)This function can be used to check the variables placed in the variable CONFIG
join(variablename, glue, before, after)Combines the value of variablename with glue before and after.