qmake整理二
来源:互联网 发布:php 数值类型 编辑:程序博客网 时间:2024/06/01 03:57
$$访问变量
作用域
作用域类似if语句在程序编程语言。如果某一个条件为真,处理范围内的声明。
For example:
win32 { SOURCES += paintwidget_win.cpp}
!win32 { SOURCES -= paintwidget_win.cpp}
macx { CONFIG(debug, debug|release) { HEADERS += debugging.h }}
macx:CONFIG(debug, debug|release) { HEADERS += debugging.h}
win32:DEFINES += USE_MY_STUFF
win32|macx { HEADERS += debugging.h}
win32:xml { message(Building for Windows) SOURCES += xmlhandler_win.cpp} else:xml { SOURCES += xmlhandler.cpp} else { message("Unknown configuration")}
Configuration and Scopes
CONFIG += openglopengl {//CONFIG配置了opengl TARGET = application-gl} else {//CONFIG没有配置opengl TARGET = application}
Platform Scope Values
message($$QMAKESPEC)linux-g++ { message(Linux)}
0 0
- qmake整理二
- qmake 整理
- qmake整理三
- qmake 乱乱乱谈(二)
- qmake概念理解(二)
- qmake
- QMake
- qmake
- QMake
- qmake
- qmake
- qmake
- qmake
- qmake
- qmake
- qmake
- qmake
- qmake
- C/C++编程的常识和注意点(不断更新)
- 机器学习11-神经网络综合运用
- Logback配置详解(一)
- Laravel 5.4 Eloquent 定义 复合主键(报Illegal offset type错)
- jzoj P2435 【普及_模拟】校门外的树
- qmake整理二
- 如何安装markman
- sxt--第四天
- P1192 台阶问题
- dcoker基本命令汇总
- C++命名规则
- [] == false,和!![] == false结果为什么不一样?探究 == 本质
- scala隐式转换
- SQL Server中的锁类型及用法