compile and run script

This commit is contained in:
2025-08-16 19:40:41 +02:00
parent 6d4f3c54ed
commit 5c6bc1b260
2 changed files with 45 additions and 0 deletions

11
build-debug-and-run.bat Normal file
View File

@ -0,0 +1,11 @@
@echo off
REM Build and run debug executable for the Tetris project
SETLOCAL
cd /d "%~dp0"
cmake --build build-msvc --config Debug
if errorlevel 1 (
echo Build failed.
exit /b %ERRORLEVEL%
)
"%~dp0build-msvc\Debug\tetris.exe"
ENDLOCAL