当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Deep into web workers (1)
- 面部识别:攻击类型和反欺骗技术
- Writing method of field and field comparison condition in where condition in thinkphpp6
- Animation techniques and details you may not know
- Recommend suicide, openai warns: gpt-3 is too risky for medical purposes
- 看一遍就理解,图解单链表反转
- supervisor进程管理安装使用
- 工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
- Implementation of multi GPU distributed training with horovod in Amazon sagemaker pipeline mode
- ECMAScript7规范中的instanceof操作符
猜你喜欢
Count the frequency of letters in text (case insensitive)
How to learn technology efficiently
一次公交卡被“盗刷”事件带来的思考
The instanceof operator in ecmascript7 specification
京淘项目day09
A detailed explanation of microservice architecture
Don't treat exceptions as business logic, which you can't afford
Analysis of kubernetes service types: from concept to practice
编程界大佬教你:一行Python代码能做出哪些神奇的事情?
构造请求日志分析系统
随机推荐
How did I lose control of the team?
See once to understand, graphic single chain table inversion
High concurrency in ngnix cluster
easyui dialog“缓存问题”
微信小程序request报400错误 @RequestBody接收不到
ECMAScript7规范中的instanceof操作符
关于晋升全栈工程师,从入门到放弃的神功秘籍,不点进来看一看?
C++在C的基础上改进了哪些细节
汇编函数mcall systemstack asmcgocall syscall
手撕算法-手写单例模式
云计算之路-出海记:整一台 aws 免费云服务器
Go之发送钉钉和邮箱
When tidb and Flink are combined: efficient and easy to use real-time data warehouse
Share several vs Code plug-ins I use everyday
Get started, GIT
Dynamic programming -- state compression DP of set represented by binary
Git代码提交操作,以及git push提示failed to push some refs'XXX'
Insight -- the application of sanet in arbitrary style transfer
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
[original] the influence of arm platform memory and cache on the real-time performance of xenomai