From 30f51a7edf4172d32cdb4f142e4b9f2653d2559e Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 16 Jul 2022 10:33:01 +0200 Subject: [PATCH] Add install in cpu_features README.md file --- .../volk_gnsssdr/cpu_features/README.md | 44 +++++++++++++------ 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/README.md b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/README.md index f15f0b340..d33273cd7 100644 --- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/README.md +++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/README.md @@ -209,25 +209,41 @@ Please check the [CMake build instructions](cmake/README.md). - 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 -``` + ```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`. + _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 -``` + ```sh + cmake -S. -Bbuild -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug + cmake --build build --config Debug -j + cmake --build build --config Debug --target test + ``` -_Note_: Use `--target RUN_TESTS` on the last line for `Visual Studio` and -`--target RUN_TEST` for `XCode`. + _Note_: Use `--target RUN_TESTS` on the last line for `Visual Studio` and + `--target RUN_TEST` for `XCode`. + +* install `cpu_features` + + ```sh + cmake --build build --config Release --target install -v + ``` + + _Note_: Use `--target INSTALL` for `Visual Studio`. + + _Note_: When using `Makefile` or `XCode` generator, you can use + [`DESTDIR`](https://www.gnu.org/software/make/manual/html_node/DESTDIR.html) + to install on a local repository.
e.g. + + ```sh + cmake --build build --config Release --target install -v -- DESTDIR=install + ```