From 42d27af20fb5cbbbc0b0fdfef1c981d51a8baf87 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Tue, 13 Jun 2023 22:43:52 +0200 Subject: [PATCH] docs: Update install commands --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d73703988..91e7be2c0 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,10 @@ Recommended: ```bash git clone https://github.com/FairRootGroup/FairMQ fairmq_source -cmake -S fairmq_source -B fairmq_build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=fairmq_install +cmake -S fairmq_source -B fairmq_build -GNinja -DCMAKE_BUILD_TYPE=Release cmake --build fairmq_build -cmake --build fairmq_build --target test -cmake --build fairmq_build --target install +ctest --test-dir fairmq_build --output-on-failure --schedule-random -j +cmake --install fairmq_build --prefix $(pwd)/fairmq_install ``` Please consult the [manpages of your CMake version](https://cmake.org/cmake/help/latest/manual/cmake.1.html) for more options. @@ -56,6 +56,7 @@ Please consult the [manpages of your CMake version](https://cmake.org/cmake/help If dependencies are not installed in standard system directories, you can hint the installation location via `-DCMAKE_PREFIX_PATH=...` or per dependency via `-D{DEPENDENCY}_ROOT=...` (`*_ROOT` variables can also be environment variables). + ## Usage FairMQ ships as a CMake package, so in your `CMakeLists.txt` you can discover it like this: