@echo off setlocal enabledelayedexpansion echo. echo ================================================================================ echo Commonwealth Online - Qt GUI Build Script echo ================================================================================ echo. REM Check if CMake is installed cmake --version >nul 2>&1 if errorlevel 1 ( echo ERROR: CMake is not installed or not in PATH. echo Please install CMake from https://cmake.org/download/ pause exit /b 1 ) REM Create build directory if not exist "build" ( echo Creating build directory... mkdir build ) cd build echo Configuring Qt6 project with CMake... cmake .. -G "Visual Studio 17 2022" -DCMAKE_PREFIX_PATH="C:\Qt\6.4.0\msvc2019_64" if errorlevel 1 ( echo ERROR: CMake configuration failed. echo Make sure: echo 1. Qt6 is installed echo 2. Visual Studio 2022 is installed echo 3. CMAKE_PREFIX_PATH points to your Qt6 installation pause exit /b 1 ) echo. echo Configuration successful! echo. echo Building project... cmake --build . --config Release if errorlevel 1 ( echo ERROR: Build failed. pause exit /b 1 ) echo. echo ================================================================================ echo Build successful! echo ================================================================================ echo. echo Executable: %cd%\bin\Release\CommonwealthOnlineHost.exe echo. pause