Added how to build examples with cmake

master
jestarray 8 months ago
parent
commit
7d07a88b75
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      Working-on-GNU-Linux.md

+ 6
- 1
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. _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: 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! 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 ### Link raylib with system GLFW

Loading…
Cancel
Save