rasp-clay-starter/raylib-5.5/projects/CMake
jmug 9bdccda54b Add raylib
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-04-19 18:18:15 -07:00
..
CMakeLists.txt Add raylib 2025-04-19 18:18:15 -07:00
core_basic_window.c Add raylib 2025-04-19 18:18:15 -07:00
README.md Add raylib 2025-04-19 18:18:15 -07:00

raylib CMake Project

This provides a base project template which builds with CMake.

Usage

To compile the example, use one of the following dependending on your build target...

Desktop

Use the following to build for desktop:

cmake -B build
cmake --build build

Web

Compiling for the web requires the Emscripten SDK:

mkdir build
cd build
emcmake cmake .. -DPLATFORM=Web -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXECUTABLE_SUFFIX=".html"
emmake make