Files
raylib/projects/CMake
Alexandre Almeida 77353e7f31 Update GLFW to 3.5.1 (#6051)
* Update GLFW to 3.5.1

* Remove cocoa_time.c from rglfw.c

* Add macos_time.c to rglfw.c

* Redo changes from pull request #3863

* Makefile: add QuartzCore framework when building for macOS

* Add QuartzCore when building for macOS to other build files

* Remove unused GLFW dependencies
2026-08-12 13:02:51 +02:00
..
2026-08-12 13:02:51 +02: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