大家好,又见面了,我是你们的朋友全栈君。
介绍些qmake使用频率较高的函数。
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)
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/144334.html原文链接:https://javaforall.cn