定义输出路径
CONFIG += debug_and_release
CONFIG(release, debug|release) {
target_path = …/build
} else {
target_path = …/build
}
DESTDIR = …/bin
MOC_DIR = targetpath/mocRCCDIR=target_path/moc
RCC_DIR = targetpath/mocRCCDIR=target_path/rcc
UI_DIR = targetpath/uiOBJECTSDIR=target_path/ui
OBJECTS_DIR = targetpath/uiOBJECTSDIR=target_path/obj