当前位置:网站首页>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
makeTools , 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
makefileIt'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 ,CMakeThis rule file generatesmakefile, This file isCMakeLists.txt
therefore , One Cpp engineering , From source to run , You can write it manually
makefilefile , Then compile , Generate an executable file ; You can also writeCMakeListsfile , adoptCMakeTools , Automatic generationmakefilefile , Then compile to generate an executable file
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .
版权声明
本文为[Coxhuang]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢

The instanceof operator in ecmascript7 specification

Go之发送钉钉和邮箱

Using pipe() to improve code readability in pandas

What magic things can a line of Python code do?

构造请求日志分析系统

Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?

What kind of technical ability should a programmer who has worked for 1-3 years? How to improve?

android基础-RadioButton(单选按钮)

Summary of the resumption of a 618 promotion project

How to learn technology efficiently
随机推荐
Insight -- the application of sanet in arbitrary style transfer
More than 50 object detection datasets from different industries
Cpp(一) 安装CMake
ngnix集群高并发
High concurrency in ngnix cluster
三步一坑五步一雷,高速成长下的技术团队怎么带?
Data transmission of asynchronous serial communication controlled by group bus communication
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
Analysis of kubernetes service types: from concept to practice
On hiz buffer
Git code submission operation, and git push prompt failed to push some refs'xxx '
Cpp(三) 什么是CMake
static+代码块+多态+异常
关于晋升全栈工程师,从入门到放弃的神功秘籍,不点进来看一看?
使用 Xunit.DependencyInjection 改造测试项目
状态压缩:对动态规划进行降维打击
Implementation of Caesar cipher
Writing method of field and field comparison condition in where condition in thinkphpp6
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
Cpp(四) Boost安装及基本使用 for Mac