Skip to content

KevinJey/cmake-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 CMake-Learn 项目 🌟

这是一个 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 的语法笔记和技巧。

🚀 使用方法

  1. 克隆本项目到本
git clone https://github.com/KevinJey/cmake-learn
  1. 进入项目目录:
cd cmake-tutorial/Step1
  1. 构建项目并运行示例程序
mkdir build
cmake --build .
make
./Tutorial

📄 参考文献

CMake官方教程

b站视频教程岩木三

笔记来源

👨‍💻 贡献者

About

This repos is for learing cmake.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published