From 7d07a88b758dc2172a06254e1055466b43d8f336 Mon Sep 17 00:00:00 2001 From: jestarray <34615798+jestarray@users.noreply.github.com> Date: Fri, 25 Oct 2024 08:24:45 -0700 Subject: [PATCH] Added how to build examples with cmake --- Working-on-GNU-Linux.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Working-on-GNU-Linux.md b/Working-on-GNU-Linux.md index 694d834..327f498 100644 --- a/Working-on-GNU-Linux.md +++ b/Working-on-GNU-Linux.md @@ -96,7 +96,7 @@ In case any dependencies are missing, cmake will tell you. _NOTE:_ raylib is configurable and can be be built in a variety of ways. See the [CMake Build Options](https://github.com/raysan5/raylib/wiki/CMake-Build-Options) for a full listing of available options and values. Alternatively, you may use the curses UI provided by `ccmake(1)` for interactively configuring raylib. -## Building Examples +## Building Examples with make If you have installed raylib with `make install`, Just move to the folder `raylib/examples` and run: @@ -121,6 +121,11 @@ To force recompile one example: The `raylib/games` folder can be made the same way as the examples. Have fun! +## Building examples with cmake +In `raylib/examples` run: + + cmake -DCUSTOMIZE_BUILD=ON -DBUILD_EXAMPLES=ON .. + make ### Link raylib with system GLFW