Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add installation instructions for GoogleTest #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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