diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2021-10-27 14:48:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 14:48:47 +0200 |
commit | 0dd8b41eca0288bd0e5b493adcdaf7a46b80b94b (patch) | |
tree | 6e230d8d47ed2d1b90137903b465286e83d4a3af | |
parent | 8e5c298d1df85dc9b48791b62ab231a3aed952d0 (diff) | |
download | cpu_features-0dd8b41eca0288bd0e5b493adcdaf7a46b80b94b.tar.gz |
Update README.md (#193)
Change `Quickstart` section to match new default value for testing.
-rw-r--r-- | README.md | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -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 -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 -DBUILD_TESTING=ON - 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 |