1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 23:22:31 +02:00

Add quickstart to documentation

This commit is contained in:
Guillaume Chatelet 2020-09-21 09:46:12 +00:00
parent 33bd72c1bc
commit 3dc868037a

View File

@ -172,3 +172,20 @@ See [LICENSE](LICENSE) for more information.
## Build with CMake
Please check the [CMake build instructions](cmake/README.md).
### Quickstart with `Ninja`
- build `list_cpu_features`
```
cmake -B/tmp/cpu_features -H. -GNinja -DCMAKE_BUILD_TYPE=Release
ninja -C/tmp/cpu_features
/tmp/cpu_features/list_cpu_features --json
```
- run tests
```
cmake -B/tmp/cpu_features -H. -GNinja -DBUILD_TESTING=ON
ninja -C/tmp/cpu_features
ninja -C/tmp/cpu_features test
```