当前位置:网站首页>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.
【水平所限,错漏难免,创作不易,轻喷勿骂】
边栏推荐
- 裁员趋势下的大厂面试:“字节跳动”
- 循环神经网络(RNN)
- KDE Frameworks 5.20.0: Plasma welcomes many improvements
- 二叉排序树(C语言)
- 测试员容易陷入的9大误区
- Since the media how to write a short video title?Three hot style title, let your video gain more traffic
- Fabric 私有数据案例
- Detailed explanation of nacos cluster configuration
- Google Chrome (google) is set to translate Chinese, the translation option does not take effect or the translation option does not pop up
- Worthington Dissociation Enzymes: Trypsin and Frequently Asked Questions
猜你喜欢
自学HarmonyOS应用开发(56)- 用Service保证应用在后台持续运行
基于TNEWS‘ 今日头条中文新闻(短文本)分类
抖音短视频流量获取攻略,掌握好这些一定可以出爆款
Worthington解离酶:胰蛋白酶及常见问题
vmtouch——Linux下的文件缓存管理神器
Superficial understanding of CNN
重新定义分析 - EventBridge 实时事件分析平台发布
CMake Tutorial 巡礼(1)_基础的起点
Worthington Dissociation Enzymes: Trypsin and Frequently Asked Questions
7.27
随机推荐
STM32 - OLED display experiment
He used to cells harvested trypsin & release procedure
[Training DAY16] ALFA [convex hull] [computational geometry]
Print linked list from end to beginning
Selenium上传文件有多少种方式?不信你有我全
How Filebeat ensures that the log file is still correctly read when the log file is split (or rolled)
@RequestParam注解的详细介绍
百度智能云章淼:详解企业级七层负载均衡开源软件BFE
利用热点事件来创作软文的3大技巧?自媒体人必看
Worthington木瓜蛋白酶&胰凝乳蛋白酶&脱氧核糖核酸酶 I
I.MX6U-驱动开发-3-新字符驱动
Worthington用于细胞收获的胰蛋白酶&细胞释放程序
[Flutter] Flutter preloading of mixed development solves the problem of slow page loading for the first time
谷歌浏览器(google)设置翻译中文,翻译选项不生效或没有弹出翻译选项
How do we-media people create explosive articles?These 3 types of articles are most likely to explode
string replace spaces
exness:美国GDP萎缩,日元反弹受捧
低压差线性稳压器MPQ2013A-AEC1品牌MPS国产替代
微信开发者工具设置制表符大小为2
【Incubator DAY18】Interesting exchange【Simulation】【Math】