raysan5 / raylib-game-template

A small template to start your raylib game
zlib License
420 stars 101 forks source link

Add CMake to build the project #28

Closed lpg2709 closed 6 months ago

lpg2709 commented 6 months ago

Hi

I adapted the project to use CMake as a development alternative. There are probably scenarios where some specific configuration is missing (for example building for Android).

I tried to make it as easy as possible to use, where CMake is responsible for downloading dependencies and detecting new .c files in the src folder.

This version has been tested on Linux (gcc 13.2.0) and WSL2 (using Ubuntu 20.2). In all cases it was possible to compile and run the base project.

raysan5 commented 6 months ago

@lpg2709 Personally I'm not a fan of CMake build system but I know this could be useful for some users. Thanks for the addition.