defined(name[, type])
type | 含义 |
---|---|
test | 检查测试函数 |
replace | 检查代替函数 |
var | 检查变量 |
defined(COPY_TARGET, var) {
...
}
contains(variablename, value)
contains(QT, core) {
...
}
equals(variablename, value)
TARGET = Test
equals(TARGET, "Test") {
...
}
message(string)
log(string)
warning(string)
error(string)
greaterThan(variablename, value)
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
system(command)