@echo off REM Build Script for Example 1 mkdir build if "%1"=="--setup" ( git submodule update --init pushd ".\external\raylib\" cmake -S . -B build -DBUILD_EXAMPLES=Off cmake --build build popd ) pushd ".\build" cl /Zi raylib.lib user32.lib opengl32.lib gdi32.lib winmm.lib msvcrt.lib shell32.lib "..\example1.c" -Ic:"\external\raylib\build\raylib\include" /link /libpath:c:"..\external\raylib\build\raylib\Release" /NODEFAULTLIB:libcmt /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcmtd if "%1"=="--run" if %errorlevel%==0 example1.exe popd