CMake具体示例
目录结构
project0702/
├── CMakeLists.txt # 主目录的 CMake 配置文件
├── build/ # 构建输出目录
│ └── Debug/ # Debug 模式下的输出目录
├── lib/ # 存放动态库的目录
│ ├── practice01.dll
│ ├── practice02.dll
│ └── practice03.dll
├── practice01/ # practice01 模块
│ ├── CMakeLists.txt # practice01 模块的 CMake 配置文件
│ ├── include/ # 存放 practice01 模块的头文件
│ │ └── practice01.h
│ └── src/ # 存放 practice01 模块的源代码
│ └── practice01.cpp
├── practice02/ # practice02 模块
│ ├── CMakeLists.txt # practice02 模块的 CMake 配置文件
│ ├── include/ # 存放 practice02 模块的头文件
│ │ └── practice02.h
│ └── src/ # 存放 practice02 模块的源代码
│ └── practice02.cpp
├── practice03/ # practice03 模块
│ ├── CMakeLists.txt # practice03 模块的 CMake 配置文件
│ ├── include/ # 存放 practice03 模块的头文件
│ │ └── practice03.h
│ └── src/ # 存放 practice03 模块的源代码
│ └──