当前位置:网站首页>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、常用变量:
指定编译选项
边栏推荐
- 氮杂环分子改性UiO-66-NH2|聚乙烯亚胺改性UiO-66-NH2|[email protected]@ZIF67纳米材料
- Why is SaaS so important for enterprise digital transformation?
- Have you learned the database design pattern of multi tenant SaaS?
- 第十二章 STL 之 list
- 实验1:使用Matlab工具箱进行相机标定实验
- 2022.7.16-----leetcode. Sword finger offer 041
- CLWY权限管理(三)--- 用户组模块
- Chapter 4 - first order multi-agent system consistency - > pilot follow system consistency [program code]
- R language ggplot2 visual faceting: ggplot2 visualizes facets and removes the border lines between facets and the gap between facets (remove spacing between panels)
- 状态码的故事
猜你喜欢
![[C language] storage of floating-point type in memory](/img/a5/5e360fb0a1b3425dd9372cc29d0a3b.png)
[C language] storage of floating-point type in memory

Talking about the informatization planning of industrial enterprises

第十一章 STL 之 queue

Develop the first Flink app

负载型金属有机骨架ZIF-8/氧化石墨烯储氢材料|二氧化钛/ZIF-8复合材料|二氧化硅@ZIF8纳米材料

Rhcsa the next day 7.15

Among China's top ten national snacks, it is actually the first

第十章 STL 之 stack

Detailed explanation of C51 common data types

中国十大国民小吃,第一居然是它
随机推荐
【摸鱼神器】UI库秒变低代码工具——表单篇(二)子控件
D. Mark and Lightbulbs
The study found that DNA nano device injection can be safely used for medical purposes
CLWY权限管理(三)--- 用户组模块
Es index, type (mapping), document, IK word breaker
Relationship between standardization, normalization and regularization
Part I - Fundamentals of C language_ 2. Data type
Memory LDA LDA in Blas level-3 sgemm cublesgemmex cubulassgemm
rhcsa 第二天 7.15
金纳米粒子修饰MIL-101骨架材料(AuNPs/MIL-101)/负载COF-TpPa-1(Au NPs/COF-TpPa-1)|齐岳试剂
JS 之 操作 String 字符串
CLWY权限管理(二)--- 用户模块
Chapter 4 - first order multi-agent system consistency - > pilot follower system consistency
Chapter 12 list of STL
【C语言】浅涉选择、循环语句、函数及数组
钴铁双金属有机骨架Cox/MIL-100(Fe)|光敏剂@[email protected]|负载CQDs的FeMIL101材料|mof试剂
第一部分—C语言基础篇_2. 数据类型
Add - before the command in makefile to ignore the error caused by the command and continue to execute the next command
[C language] user defined type elementary knowledge points
Detailed explanation of the different usage of PIP and PIP3