@echo off setlocal set "CMAKE_EXE=" where cmake >nul 2>&1 if %errorlevel% equ 0 ( set "CMAKE_EXE=cmake" ) else if exist "C:\Program Files\CMake\bin\cmake.exe" ( set "CMAKE_EXE=C:\Program Files\CMake\bin\cmake.exe" ) else ( echo Error: CMake not found! echo Please install CMake or add it to PATH. pause exit /b 1 ) echo ====================================== echo Configuring for Visual Studio echo ====================================== echo. echo [1/2] Configuring x86... "%CMAKE_EXE%" -S . -B build_x86 -A Win32 if %errorlevel% neq 0 goto error echo [2/2] Configuring x64... "%CMAKE_EXE%" -S . -B build_x64 -A x64 if %errorlevel% neq 0 goto error echo. echo ====================================== echo Configuration completed! echo ====================================== echo. echo You can now open: echo - build_x86\EzUI.sln (x86) echo - build_x64\EzUI.sln (x64) echo. pause exit /b 0 :error echo. echo ====================================== echo Configuration failed! echo ====================================== pause exit /b 1