From b36ba51501344e951248a33d2163a1862c030107 Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Thu, 12 Sep 2024 17:28:07 +0900 Subject: [PATCH] Update Windows instructions of examples Signed-off-by: Daisuke Sato --- tutorials/example_angle.md | 7 +++++++ tutorials/example_triangle.md | 7 +++++++ tutorials/example_vector2.md | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/tutorials/example_angle.md b/tutorials/example_angle.md index 00e66027..5827504c 100644 --- a/tutorials/example_angle.md +++ b/tutorials/example_angle.md @@ -14,13 +14,20 @@ cd gz-math/examples mkdir build cd build cmake .. +# Linux and macOS make +# Windows +cd .. +cmake --build build --config Release ``` When the code is compiled, run: ```{.sh} +# Linux and macOS ./angle_example +# Windows +.\build\Release\angle_example.exe ``` The ouput of the program: diff --git a/tutorials/example_triangle.md b/tutorials/example_triangle.md index 2226a12c..e42ffe93 100644 --- a/tutorials/example_triangle.md +++ b/tutorials/example_triangle.md @@ -12,13 +12,20 @@ cd gz-math/examples mkdir build cd build cmake .. +# Linux and macOS make +# Windows +cd .. +cmake --build build --config Release ``` When the code is compiled, run: ```{.sh} +# Linux and macOS ./triangle_example +# Windows +.\build\Release\triangle_example.exe ``` The ouput of the program: diff --git a/tutorials/example_vector2.md b/tutorials/example_vector2.md index b34df1e8..484b6987 100644 --- a/tutorials/example_vector2.md +++ b/tutorials/example_vector2.md @@ -14,13 +14,20 @@ cd gz-math/examples mkdir build cd build cmake .. +# Linux and macOS make +# Windows +cd .. +cmake --build build --config Release ``` When the code is compiled, run: ```bash +# Linux and macOS ./vector2_example +# Windows +.\build\Release\vector2_example.exe ``` The output of the program: