Skip to content

Commit

Permalink
docs: add installation instructions for GoogleTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lms2004 committed Jan 10, 2025
1 parent 411714a commit b6881bb
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions docs/项目部署.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```
### 环境准备
建议使用Linux系统或Mac系统,windows下使用WSL,配置方法和Linux一致。
Expand All @@ -11,23 +12,35 @@ brew install gcc
```

2. 安装CMake,请确认版本为 3.17 及以上的稳定版本
``` bash

```bash
# linux 使用apt安装
sudo apt install cmake

# mac 使用Homebrew安装
brew install cmake
```

2. 安装make
``` bash
3. 安装make

```bash
# linux 使用apt安装
sudo apt install make

# mac 使用Homebrew安装
brew install make
```

4. 安装googletest

```bash
# 先删除空目录 googletest
rmdir googletest

# 然后直接克隆到 TinyInfiniTensor/3rd-party 目录下
git clone https://github.com/google/googletest.git
```

### 构建命令
配置好上述环境后,进入项目目录后可以通过以下命令进行构建。
- `make`/`make build`: 构建整个项目;
Expand Down

0 comments on commit b6881bb

Please sign in to comment.