当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- [random talk] the goal and way of software design
- Web安全(二)---跨域资源共享
- 汇编函数mcall systemstack asmcgocall syscall
- 如何以计算机的方式去思考
- 京淘项目day09
- GrowingIO 响应式编程探索和实践
- Implementation of Caesar cipher
- Using pipe() to improve code readability in pandas
- Insight -- the application of sanet in arbitrary style transfer
- go wire 依赖注入入门
猜你喜欢

一次公交卡被“盗刷”事件带来的思考

C language I blog assignment 03

More than 50 object detection datasets from different industries

Using pipe() to improve code readability in pandas

Insight -- the application of sanet in arbitrary style transfer

Reflection on a case of bus card being stolen and swiped

微信小程序request报400错误 @RequestBody接收不到

一万四千字分布式事务原理解析,全部掌握你还怕面试被问?

The CPU does this without the memory

洞察——风格注意力网络(SANet)在任意风格迁移中的应用
随机推荐
Cpp(一) 安装CMake
DOM节点操作
Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?
在 Amazon SageMaker 管道模式下使用 Horovod 实现多 GPU 分布式训练
easyui dialog“缓存问题”
栈-括号的匹配
ECMAScript7规范中的instanceof操作符
数据库基本操作
你可能不知道的Animation动画技巧与细节
小熊派开发板实践:智慧路灯沙箱实验之真实设备接入
状态压缩:对动态规划进行降维打击
Kubernetes服务类型浅析:从概念到实践
云计算之路-出海记:整一台 aws 免费云服务器
Web安全(一)---浏览器同源策略
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
编程界大佬教你:一行Python代码能做出哪些神奇的事情?
Web安全(二)---跨域资源共享
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
看一遍就理解,图解单链表反转
Code Review Best Practices