cs-self-learning/docs/必学工具/CMake.md

5 lines
No EOL
797 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 为什么学习CMake
CMake 是类似于 GNU make 的跨平台自动软件构件工具,使用 CMakeLists.txt 定义构建规则,相比于 make 它提供了更多的功能在各种软件构建上广泛使用。__强烈建议学习使用 make 和熟悉 Makefile 后再学习CMake__。
## 如何学习CMake
CMakeLists.txt 比 Makefile 更为抽象,理解和使用难度也更大。现阶段很多 IDE (如 Visual Studio, CLion)提供了自动生成 CMakeLists.txt 的功能,但掌握 CMakeLists.txt 的基本用法仍然很有必要。除了[CMake 官方 Tutorial](https://cmake.org/cmake/help/latest/guide/tutorial/index.html)外,上海交通大学 IPADS 组新人培训也提供了[大约一小时的视频教程](https://www.bilibili.com/video/BV14h41187FZ?spm_id_from=333.999.0.0)