当前位置:网站首页>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.
【水平所限,错漏难免,创作不易,轻喷勿骂】

边栏推荐
- Worthington酶促细胞收获&细胞粘附和收获
- Filebeat如何保证在日志文件被切割(或滚动rolling)时依然正确读取文件
- Linux-安装MySQL(详细教程)
- [Experience] Experience Summary - Lessons Learned
- FlutterBoost 3.0出现 Activity无法转换为ExclusiveAppComponent<Activity>的解决办法
- what is a .pro file in qt
- CMake Tutorial 巡礼(1)_基础的起点
- Navicat报错:1045-Access denied for user [email protected](using passwordYES)
- “灯塔工厂”的中国路径:智造从点到面铺开
- 转发和重定向的区别及使用场景
猜你喜欢
随机推荐
自学HarmonyOS应用开发(56)- 用Service保证应用在后台持续运行
Google Chrome (google) is set to translate Chinese, the translation option does not take effect or the translation option does not pop up
抖音短视频流量获取攻略,掌握好这些一定可以出爆款
Running a Fabric Application
Replace the executable file glibc version of the one
npm ERR! code ENOTSUPnpm ERR! notsup Unsupported engine for [email protected]: wanted: {“n
Fabric 编写案例 链码
CMake Tutorial 巡礼(0)_总述
Fabric 私有数据案例
LeetCode / Scala - 无重复字符最长子串 ,最长回文子串
[Flutter] Flutter preloading of mixed development solves the problem of slow page loading for the first time
How to increase account weight?3 ways to operate your own media to help you get more revenue
裁员趋势下的大厂面试:“字节跳动”
Introduction to Worthington Elastase & Hyaluronidase
自媒体短视频标题怎么写?3个爆款标题,让你的视频收获更多流量
servlet执行详解
Reconstruction of binary tree
重新定义分析 - EventBridge 实时事件分析平台发布
推荐系统:特征工程、常用特征
Worthington Dissociation Enzymes: Trypsin and Frequently Asked Questions









