This is a minimal template that fetches and builds the latest r3d (and its dependencies raylib and assimp) automatically via CMake's FetchContent. No manual cloning into external/ is required.
- CMake 3.15+
- Git
- C/C++ toolchain (e.g., MinGW-w64 on Windows)
- Python 3 (required by
r3dfor shader processing)
cmake -S . -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build build -jRun the executable from build/.
By default, the template fetches the latest from master branches. To pin stable versions, pass tags/commits:
cmake -S . -B build -G "MinGW Makefiles" \
-DRAYLIB_GIT_TAG=5.5 \
-DASSIMP_GIT_TAG=v5.3.1 \
-DR3D_GIT_TAG=master- We build static libraries to avoid DLL issues on Windows.
raylibis configured in a "minimal" mode compatible withr3dto avoid symbol clashes (model loaders disabled).- If you prefer a different generator (e.g., Visual Studio), omit
-G "MinGW Makefiles"and use the appropriate generator for your environment.
src/main.cpp: Minimal sample that initializesraylib+r3dand renders a simple scene.CMakeLists.txt: Fetches and configuresraylib,assimp, andr3d.
- Copy this folder to start a new project, or use Github's "Use this template" feature.