@echo off if exist build\ ( cd build cmake --build . cd .. ) else ( mkdir build cd build cmake -G "Visual Studio 17 2022" .. cd .. build.bat )