Simply double-click or run the run.bat file in the project root. It will automatically generate the CMake build files, compile the project, and run the executable.
- Generate the build files:
cmake -S . -B build
- Compile the project:
cmake --build build - Run the executable (from the
srcfolder so assets load correctly):cd src ..\build\Debug\MyRaylibGame.exe # If using MSVC # OR ..\build\MyRaylibGame.exe # If using MinGW
If you need to clean the build files, you can use:
cmake --build build --target clean