当前位置:网站首页>CMake Tutorial Tour(0)_Overview
CMake Tutorial Tour(0)_Overview
2022-07-30 00:55:00 【CarnivoreRabbit】
CMake Tutorial 巡礼(0)_ 总述
这是本系列的第一篇.
CMakeIs a very good and powerful cross-platformC++编译工具.
GithubA lot of the source code is attachedCMakeLists.txt,All are compiled with this tool.
before learning,This is basically what Ben Xiaobai knows about this tool.
从今天开始,Ben Xiaobai decides from start to finish,完成CMake Tutorial的练习,And record the process and experience.
this tour,Xiaobai decided to do it in the most stupid way:翻译-练习-记录,Just in case some information was missed.The main content of the tour is fromCMake官方的Tutorial,所不同的是,Xiaobai will call in the appropriate place“Xiaobai press”为开头,Let's insert some Xiaobai's own experience.
It is because of this logic,So if you want to pursue short, smooth and quick masteryCMakestudents can stop reading the following,This series is more suitable for players who follow the operation type.Follow the steps down step by step,is the style of this series.
接下来进入正题.
让我们打开CMake Tutorial
1 导语
The Cmake tutorial provides a step-by-step guide that covers common build system issues that CMake helps address. Seeing how various topics all work together in an example project can be very helpful.
CMake Tutorial 提供了“一步步“style guidance,Overrides the build system processCMakeHelp with frequently asked questions.Via an example project,See how multiple themes work together,(对我们学习)会很有帮助.
Xiaobai press:Xiaobai's English level is very general.There will be strong translation”机翻“味儿.Please mind the students do not mind(手动狗头).
2 步骤
The tutorial source code examples are available in
this archive
. Each step has its own subdirectory containing code that may be used as a starting point. The tutorial examples are progressive so that each step provides the complete solution for the previous step.
TutorialThe source code routines are in 这里(If the URL expires, you can go directly to the official website to find the corresponding English original link)可供下载.Each step has its own subfolder,The code contained in the subfolders can be used as a starting point for exercises.TutorialThe example is incremental,This means that each step is based on the completion of the previous step.
- Step 1: A Basic Starting Point
- Build and Run
- Adding a Version Number and Configured Header File
- Specify the C++ Standard
- Rebuild- Step 2: Adding a Library
- Step 3: Adding Usage Requirements for a Library
- Step 4: Installing and Testing
- Install Rules
- Testing Support- Step 5: Adding System Introspection
- Step 6: Adding a Custom Command and Generated File
- Step 7: Packaging an Installer
- Step 8: Adding Support for a Testing Dashboard
- Step 9: Selecting Static or Shared Libraries
- Step 10: Adding Generator Expressions
- Step 11: Adding Export Configuration
- Step 12: Packaging Debug and Release
- 第一步:A basic starting point
- 编译并运行
- Add the version number and specify the header file
- 指定C++标准
- 重编译
- 第二步:添加一个库
- 第三步:为库添加使用需求
- 第四步:安装和测试
- 安装规则
- 测试支持
- 第五步:Add system introspection
- 第六步:Add custom commands and makefiles
- 第七步:Package an installation file
- 第八步:Add support for testing whiteboards
- 第九步:Select static or dynamic library
- 第十步:添加生成器表达式
- 第十一步:Add export parameters
- 第十二步:打包Debug及Release版本
Xiaobai press:以上是CMake Tutorialthe introduction part,From this part we can see thisTutorial的一些基本内容,First of all it is an incremental learning process,And it covers a lot of problems that will actually be encountered during the compilation process.其中有些问题,Xiaobai has a certain concept,For other questions, Xiaobai may need to familiarize himself with the nouns.按照 CMake Tutorialco-ordination arrangements,There should be thirteen articles in this series,Remove this one as the introduction part,The remaining twelve articles are dry goods.
This part is the main content we will study next,We'll get it right first in the next article”A basic starting point“Learn this part.
【水平所限,错漏难免,创作不易,轻喷勿骂】
边栏推荐
- Linux-安装MySQL(详细教程)
- 2022-07-29:一共有n个人,从左到右排列,依次编号0~n-1, h[i]是第i个人的身高, v[i]是第i个人的分数, 要求从左到右选出一个子序列,在这个子序列中的人,从左到右身高是不下降的。
- Worthington木瓜蛋白酶&胰凝乳蛋白酶&脱氧核糖核酸酶 I
- Graph Theory: Bipartite Graphs
- 工厂模式
- 自媒体人如何打造出爆文?这3种类型的文章最容易爆
- 自学HarmonyOS应用开发(56)- 用Service保证应用在后台持续运行
- exness:美国GDP萎缩,日元反弹受捧
- Worthington细胞分离技术丨基本原代细胞分离方法和材料
- 自学HarmonyOS应用开发(49)- 引入地图功能
猜你喜欢
Worthington Enzymatic Cell Harvest & Cell Adhesion and Harvest
[MySQL series] MySQL database foundation
【Incubator DAY18】Interesting exchange【Simulation】【Math】
自学HarmonyOS应用开发(47)- 自定义switch组件
Worthington Optimized Technology: Cell Quantification
Baidu Intelligent Cloud Zhangmiao: Detailed explanation of enterprise-level seven-layer load balancing open source software BFE
Meetings OA To Be Meeting && All Meetings
servlet执行详解
利用热点事件来创作软文的3大技巧?自媒体人必看
[email protected](using passwordYES)"/>
Navicat报错:1045-Access denied for user [email protected](using passwordYES)
随机推荐
canvas 中如何实现物体的框选(六)
Worthington解离酶:胰蛋白酶及常见问题
遇到bug的解决办法,测试再也不背锅了
Worthington弹性蛋白酶&透明质酸酶简介
测试员容易陷入的9大误区
更换可执行文件glibc版本的某一次挣扎
Linux - install MySQL (detailed tutorial)
Worthington木瓜蛋白酶&胰凝乳蛋白酶&脱氧核糖核酸酶 I
7.28
STM32——OLED显示实验
Worthington Dissociation Enzymes: Trypsin and Frequently Asked Questions
Filebeat如何保证在日志文件被切割(或滚动rolling)时依然正确读取文件
MATLAB被禁下一个会是LABVIEW吗?国产测试软件ATECLOUD崛起发力
X64 mfc140u.dll文件缺失->应用程序无法正常启动(0xc000007b)解决方法
CMake Tutorial 巡礼(1)_基础的起点
Worthington经过使用测试的细胞分离系统方案
Reconstruction of binary tree
华为“天才少年”稚晖君又出新作,从零开始造“客制化”智能键盘
CMake Tutorial 巡礼(0)_总述
从尾到头打印链表