这是一个 CMake 和 Makefile 的语法笔记和教程项目,旨在帮助初学者快速掌握 CMake 和 Makefile 的基本语法和用法。
🚀 通过学习本项目,你将能够掌握 CMake 和 Makefile 的基本概念、语法和用法,以及如何使用它们来构建和管理 C/C++ 项目。🚀
本项目的目录结构如下:
.
├── cmake-tutorial
│ ├── Complete
│ │ └── MathFunctions
│ ├── Step1
│ │ └── build
│ │ └── CMakeFiles
│ │ ├── 3.26.4
│ │ │ ├── CompilerIdC
│ │ │ │ └── tmp
│ │ │ └── CompilerIdCXX
│ │ │ └── tmp
│ │ ├── Tutorial.dir
│ │ └── pkgRedirects
│ ├── Step10
│ │ └── MathFunctions
│ ├── Step11
│ │ └── MathFunctions
│ ├── Step12
│ │ └── MathFunctions
│ ├── Step2
│ │ └── MathFunctions
│ ├── Step3
│ │ └── MathFunctions
│ ├── Step4
│ │ └── MathFunctions
│ ├── Step5
│ │ └── MathFunctions
│ ├── Step6
│ │ └── MathFunctions
│ ├── Step7
│ │ └── MathFunctions
│ ├── Step8
│ │ └── MathFunctions
│ └── Step9
│ └── MathFunctions
└── cmakeAndmakefile_note
├── Make
│ ├── 2048
│ │ └── headers
│ ├── img
│ └── sudoku
└── cmake
└── img
cmake-tutorial
:CMake 官方教程的代码示例和笔记。cmakeAndmakefile_note
:CMake和Makefile 的语法笔记和技巧。
- 克隆本项目到本
git clone https://github.com/KevinJey/cmake-learn
- 进入项目目录:
cd cmake-tutorial/Step1
- 构建项目并运行示例程序
mkdir build
cmake --build .
make
./Tutorial
- 作者: JunjieHu
- Email: [email protected]