当前位置:网站首页>cmake -- 笔记
cmake -- 笔记
2022-07-17 11:14:00 【wishfly】
0 CMake常用命令总结
CMake常用命令总结_mby1988的博客-CSDN博客_cmake命令
**cmake的内置命令是不区分大小写的
**cmake不管是内置变量还是自定义变量都是区分大小写的
0.1、首先用cmake_minimum_required (VERSION 3.14.1)指定所需cmake的最小版本。
0.2、project(name CXX C)指定工程名称,这个会影响PROJECT_SOURCE_DIR(第一个project所在的CMakelist.txt所在的文件的目录)的值
0.3、通用的属性可以放在单独的文件中如ToolChain.cmake,然后可以用include (ToolChain.cmake)等方式饱含。
0.4、set(CMAKE_VERBOSE_MAKEFILE ON/OFF)用于开关编译时的详细信息打印
0.5、常用变量:
指定编译选项
边栏推荐
- Part I - Fundamentals of C language_ 5. Arrays and strings
- [C language] Pointer exercise 2 - real written test questions and analysis
- NPM usage
- 工程效能CI/CD之流水线引擎的建设实践
- On the problem of dependency invalidation when the dependency in the basic module is inherited by the sub module in the microservice
- 第十章 STL 之 stack
- CLWY权限管理(一)--- 项目搭建
- es索引、类型(mapping)、文档、ik分词器
- [动态规划]DP27 跳跃游戏(二)-中等
- Interview questions - design test cases for:: memcpy function
猜你喜欢
随机推荐
18、shell脚本编程(1)
JS 之 操作 String 字符串
Relationship between standardization, normalization and regularization
第1周学习:深度学习入门和pytorch基础
闲谈工业企业全厂信息化规划
The inflection point of eth may be just around the corner, which is how to
卟啉包裹型金属有机框架材料[email protected]|[email protected]<
第一部分—C语言基础篇_5. 数组和字符串
关于基础模块中的依赖由微服务中的子模块继承的时候依赖失效的问题
壳聚糖包裹PCN224纳米粒子|金属-有机骨架Fe-MIL-88NH2|镍基MOF材料(Ni-MOF/NF)
Part I - Fundamentals of C language_ 5. Arrays and strings
氟改性UiO-66|3,4-二羟基苯甲醛改性UiO-66-NH2|喜树碱衍生物/寡肽@ZIF-8纳米载药体系
506.相对名次
华为无线设备配置静态负载均衡
Mysqldump full recovery to another new instance, and then perform flush privileges analysis
第一部分—C语言基础篇_2. 数据类型
Chapter 4 - first order multi-agent system consistency - > switching topology system consistency
[C language] Pointer exercise 2 - real written test questions and analysis
第十二章 STL 之 list
金属有机骨架/碳化氮纳米片(UiO-66/HOCN)复合材料|MIL-101负载Au-Pd合金纳米粒子|化学试剂mof定制









