#定义条件编译宏LAOER
DEFINES += LAOER
#依赖编译宏LAOER的编译选项:
contains(DEFINES, LAOER){
message(hello Laoer)
}
#与编译宏LAOER冲突的编译选项:
!contains(DEFINES, LAOER){
message(hello Laoda)
}else
{
...
}
#定义条件编译宏LAOER
DEFINES += LAOER
#依赖编译宏LAOER的编译选项:
contains(DEFINES, LAOER){
message(hello Laoer)
}
#与编译宏LAOER冲突的编译选项:
!contains(DEFINES, LAOER){
message(hello Laoda)
}else
{
...
}