定义输出路径
CONFIG += debug_and_release
CONFIG(release, debug|release) {
target_path = …/build
} else {
target_path = …/build
}
DESTDIR = …/bin
MOC_DIR =
t
a
r
g
e
t
p
a
t
h
/
m
o
c
R
C
C
D
I
R
=
target_path/moc RCC_DIR =
targetpath/mocRCCDIR=target_path/rcc
UI_DIR =
t
a
r
g
e
t
p
a
t
h
/
u
i
O
B
J
E
C
T
S
D
I
R
=
target_path/ui OBJECTS_DIR =
targetpath/uiOBJECTSDIR=target_path/obj