SET SOURCE=%CD%
SET BUILD=%SOURCE%\..\build\Debug
MKDIR "%BUILD%"
CD "%BUILD%"
:: Set up use of the Microsoft Visual Studio Compiler
CALL "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
:: Generate Ninja based build system
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug %SOURCE%
:: Build the executable
cmake --build .
:: Run the executable
myproject
PAUSE