> For the complete documentation index, see [llms.txt](https://ricardolu.gitbook.io/trantor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ricardolu.gitbook.io/trantor/cmake-in-action.md).

# CMake in Action

这是一本关于CMake构建工具的入门指南，将由三部分组成：

* [一篇简单但全面的CMake Tutorial](https://medium.com/@onur.dundar1/cmake-tutorial-585dd180109b)
* [一个略微全面的CMake Example](https://github.com/gesanqiu/cmake-examples)
* 一些细节的补充

这两篇文章距今已经有一些时间了，期间CMake发生了十几个小版本的迭代，所以本书主要在翻译的基础上进行对应的CMake语法更新（截至本书首次提交的日期 `2021/07/12`，CMake最新版本为`3.21.0`）。

通过第一篇文章，你应该对CMake有了大致的了解，这时可以fork上述的CMake Example repo到本地结合例子完成前三章的practice。假如你不追求更深入的了解，那么这些知识已经足够应付你工作中大部分的情形，但是假如你处于大型工程项目中，那么我更建议你能够在结合[CMake官方文档](https://cmake.org/cmake/help/v3.21/)的基础上花更多时间学习更多的特性。
