当前位置:网站首页>CPP (3) what is cmake
CPP (3) what is cmake
2020-11-07 20:58:00 【Coxhuang】
List of articles
- What is? CMake
- #1 Environmental Science
- #2 Cpp technological process
What is? CMake
#1 Environmental Science
macOS 10.15.5
#2 Cpp technological process
What is? CMake? You need to know Cpp The process of
- With the editor (VSCode/Clion etc. ) Write source code , Such as main.cpp file
- Compile the code with the compiler to generate the target file , Such as .o
- Use linker to connect object code to generate executable , Such as Windows Under the .exe and Linux The executable under
- make
If the source file (.cpp) Too much , Compiling one by one will be particularly troublesome , So there was
make
Tools , It's an automated compilation tool , You can use a single command to achieve full compilation , But developers need to write a rule file ,make Batch compilation based on rule files , This file ismakefile
- CMake
But for a particularly huge project , Write a
makefile
It's really a very complicated thing , And there it isCMake
,CMake Responsible for reading all source files , And then generate it automaticallymakefile
, But at this moment , You need a developer to write a rule file ,CMake
This rule file generatesmakefile
, This file isCMakeLists.txt
therefore , One Cpp engineering , From source to run , You can write it manually
makefile
file , Then compile , Generate an executable file ; You can also writeCMakeLists
file , adoptCMake
Tools , Automatic generationmakefile
file , Then compile to generate an executable file
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .
版权声明
本文为[Coxhuang]所创,转载请带上原文链接,感谢
边栏推荐
- Web安全(三)---CSRF攻击
- Big data algorithm - bloon filter
- 在 Amazon SageMaker 管道模式下使用 Horovod 实现多 GPU 分布式训练
- 数据库基本操作
- 构造请求日志分析系统
- 来自不同行业领域的50多个对象检测数据集
- [original] the influence of arm platform memory and cache on the real-time performance of xenomai
- GrowingIO 响应式编程探索和实践
- 虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
- 汇编函数mcall systemstack asmcgocall syscall
猜你喜欢
随机推荐
Static + code block + polymorphism + exception
三步一坑五步一雷,高速成长下的技术团队怎么带?
The emergence and significance of micro service
你可能不知道的Animation动画技巧与细节
static+代码块+多态+异常
看一遍就理解,图解单链表反转
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
Get started, GIT
The CPU does this without the memory
Sentry installation
尾-递
Count the frequency of letters in text (case insensitive)
Adobe media encoder / me 2021 software installation package (with installation tutorial)
C++在C的基础上改进了哪些细节
获取树形菜单列表
ngnix集群高并发
The most hard core of the whole network explains the computer startup process
More than 50 object detection datasets from different industries
Code Review最佳实践
低代码 vs 模型驱动,它们之间到底是什么关系?