增加 使用 CMake 构建项目.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
d4dcca764d
commit
ba5ad79394
|
@ -0,0 +1,19 @@
|
|||
# 使用 CMake 构建项目
|
||||
|
||||
## 1.基本使用
|
||||
|
||||
CMake 会生成各种临时文件,用下面命令可将这些临时文件集中在 build 文件夹下:
|
||||
|
||||
```bash
|
||||
cmake -S . -B build
|
||||
```
|
||||
|
||||
## 2.常用宏
|
||||
|
||||
### 2.1.CMAKE_INSTALL_PREFIX
|
||||
|
||||
通过修改该宏,重新指定 install 目录:
|
||||
|
||||
```bash
|
||||
cmake -DCMAKE_INSTALL_PREFIX
|
||||
```
|
Loading…
Reference in New Issue