当前位置:网站首页>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、常用变量:
指定编译选项
边栏推荐
- Programmer growth Article 21: when assigning tasks, we should consider the growth of employees.
- Memory LDA LDA in Blas level-3 sgemm cublesgemmex cubulassgemm
- 死锁、线程与进程讲解
- Anaconda and jupyter notebook entry level detailed tutorial
- Es index, type (mapping), document, IK word breaker
- Dedecms dream weaving article list Title repeated display solution
- Clwy permission management (I) -- project construction
- Among China's top ten national snacks, it is actually the first
- 第4章-一阶多智体系统一致性 -> 领航跟随系统一致性
- 【C语言】字符串、转义字符及注释
猜你喜欢

Part I - Fundamentals of C language_ 1. Overview of C language

18. Shell Scripting (1)

金纳米粒子修饰MIL-101骨架材料(AuNPs/MIL-101)/负载COF-TpPa-1(Au NPs/COF-TpPa-1)|齐岳试剂

第1周学习:深度学习入门和pytorch基础

【ACWing】947. text editor

CLWY权限管理(一)--- 项目搭建

Chapter 4 - consistency of first-order multi-agent systems - > consistency of continuous time systems with time delays

18、shell脚本编程(1)

VIM details
![[C language] storage of floating-point type in memory](/img/a5/5e360fb0a1b3425dd9372cc29d0a3b.png)
[C language] storage of floating-point type in memory
随机推荐
第八章 STL 之 vector
Dedecms dream weaving article list Title repeated display solution
Experiment 1: camera calibration experiment using Matlab toolbox
rhcsa 第二天 7.15
Rhcsa jour 2 7,15
Talking about the informatization planning of industrial enterprises
第一部分—C语言基础篇_2. 数据类型
第十章 STL 之 stack
Among China's top ten national snacks, it is actually the first
UiO-66-(COOH)2改性聚酰胺纳滤膜|ZIF-8/PVP复合纳米纤维膜|UiO-66-NH2改性聚酰胺纳滤膜
Part I - Fundamentals of C language_ 5. Arrays and strings
How to deploy agent separately on the monitoring host -- wgcloud
Chapter 12 list of STL
565. Array nesting / Sword finger offer II 001 Integer division
Detailed explanation of the different usage of PIP and PIP3
【565. 数组嵌套】
Part I - Fundamentals of C language_ 4. Procedure flow structure
VIM details
Es index, type (mapping), document, IK word breaker
C language force buckle question 25 of K a group of inverted linked list. Multi pointer traversal