/raylib-cmake-template

A minimal project template for raylib using CMake that works well in CLion & Visual Studio.

Primary LanguageC++

Simple and portable CMake template for raylib

This is a basic project template for raylib using CMake and has been tested with Visual Studio, Visual Studio Code and CLion.

The master branch of the raylib source code is downloaded using CMake FetchContent from github and compiled from source as it is much easier than including prebuilt binaries for every platform and configuration.

Building from the cmake file will build both raylib and src/main.cpp which includes a basic example of a raylib program.

Asset handling

The shader are located in the resource/shaders subfolder. The produced binary has to be executed from the root folder of the project in order for the resources to be found.