mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 07:23:37 +02:00
Add quickstart to documentation
This commit is contained in:
parent
33bd72c1bc
commit
3dc868037a
17
README.md
17
README.md
@ -172,3 +172,20 @@ See [LICENSE](LICENSE) for more information.
|
|||||||
## Build with CMake
|
## Build with CMake
|
||||||
|
|
||||||
Please check the [CMake build instructions](cmake/README.md).
|
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
|
||||||
|
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user