@echo off rem Build Server Monitor with Qt 5. Run from a Qt command prompt (MinGW or MSVC) so that qmake is on PATH. setlocal cd /d "%~dp0" where qmake >nul 2>nul if errorlevel 1 ( echo qmake not found. Open the Qt command prompt or add the Qt bin folder to PATH. exit /b 1 ) if not exist build mkdir build cd build qmake ..\ServerMonitor.pro "CONFIG+=release" if errorlevel 1 exit /b 1 for /f %%s in ('qmake -query QMAKE_XSPEC') do set SPEC=%%s if "%SPEC%"=="win32-g++" (mingw32-make -j%NUMBER_OF_PROCESSORS%) else (nmake) if errorlevel 1 exit /b 1 windeployqt release\ServerMonitor.exe echo Done: build\release\ServerMonitor.exe