From effc7233ef69f7f578ee70d46c8ebb5533ea1208 Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Sun, 10 Nov 2024 08:52:12 +0100 Subject: [PATCH] Improve compile and run commands in tutorial introduction --- docs/Tutorial.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index c78cfdb6..ce6cc43d 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -74,10 +74,10 @@ You should enable the `BUILD_TESTS` option to build the unit tests as well. ```bash cd /home/blinky/demo -mkdir -p arbitration_graphs/demo/build -cd arbitration_graphs/demo/build +mkdir build +cd build cmake -DBUILD_TESTS=true .. -cmake --build . +cmake --build . -j9 ``` You can then run the demo with @@ -88,7 +88,7 @@ You can then run the demo with You'll also find the individual unit executables in this directory. To execute them all at once, run ```bash -find -executable -type f -name '*-gtest-*' -exec {} \; +cmake --build . --target test ``` We'll leave the setup of your favorite IDE up to you