Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gchatelet committed Oct 27, 2021
1 parent 4ba2e36 commit 995768c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,25 @@ See [LICENSE](LICENSE) for more information.
Please check the [CMake build instructions](cmake/README.md).

<a name="quickstart"></a>
### Quickstart with `Ninja`
### Quickstart

- build `list_cpu_features`
```
cmake -B/tmp/cpu_features -H. -GNinja -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
ninja -C/tmp/cpu_features
/tmp/cpu_features/list_cpu_features --json
- Run `list_cpu_features`
```sh
cmake -S. -Bbuild -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
./build/list_cpu_features --json
```

_Note_: Use `--target ALL_BUILD` on the second line for `Visual Studio` and `XCode`.

- run tests
```sh
cmake -S. -Bbuild -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug -j
cmake --build build --config Debug --target test
```
cmake -B/tmp/cpu_features -H. -GNinja
ninja -C/tmp/cpu_features
ninja -C/tmp/cpu_features test
```

_Note_: Use `--target RUN_TESTS` on the last line for `Visual Studio` and `--target RUN_TEST` for `XCode`.

<a name="bindings"></a>
## Community bindings
Expand Down

0 comments on commit 995768c

Please sign in to comment.