qt debug/release pro文件配置
作者:互联网
OBJECTS_DIR += obj
MOC_DIR += moc
#DESTDIR += bin
CONFIG+=debug_and_release
CONFIG(debug, debug|release){
TARGET = out_debug
} else {
TARGET = out_release
}
#release 禁止DEBUG输出
CONFIG (release, debug|release) {
DEFINES += QT_NO_DEBUG_OUTPUT
}
MOC_DIR += moc
#DESTDIR += bin
CONFIG+=debug_and_release
CONFIG(debug, debug|release){
TARGET = out_debug
} else {
TARGET = out_release
}
#release 禁止DEBUG输出
CONFIG (release, debug|release) {
DEFINES += QT_NO_DEBUG_OUTPUT
}
标签:qt,pro,debug,TARGET,release,DEBUG,DIR,out 来源: https://www.cnblogs.com/clive-ccc/p/16580606.html