当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Get started, GIT
- What is the relationship between low code vs model driven?
- There's not much time left for Kwai Chung.
- Dynamic programming -- state compression DP of set represented by binary
- On the coverage technology and best practice of go code
- supervisor进程管理安装使用
- 模型预测准确率高达94%!利用机器学习完美解决2000亿美元库存难题
- Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
- laravel8更新之维护模式改进
- 低代码 vs 模型驱动,它们之间到底是什么关系?
猜你喜欢
Git代码提交操作,以及git push提示failed to push some refs'XXX'
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
年薪90万程序员不如月入3800公务员?安稳与高收入,到底如何选择?
Design pattern of facade and mediator
Big data algorithm - bloon filter
IDEA-项目未自动生成 .iml 文件
状态压缩:对动态规划进行降维打击
See once to understand, graphic single chain table inversion
随机推荐
ngnix集群高并发
How did I lose control of the team?
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
Adobe Lightroom /Lr 2021软件安装包(附安装教程)
浅谈HiZ-buffer
Sentry installation
你可能不知道的Animation动画技巧与细节
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
Adobe media encoder /Me 2021软件安装包(附安装教程)
sed之查找替换
How to choose a good company
数据库基本操作
Cpp(三) 什么是CMake
What is the relationship between low code vs model driven?
[C + + learning notes] how about the simple use of the C + + standard library STD:: thread?
屏读时代,我们患上了注意力缺失候群症
Insight -- the application of sanet in arbitrary style transfer
Python image recognition OCR
graph generation model
Summary of the resumption of a 618 promotion project