1@echo off 2rem Specify the path to your CMake installation 3set CMAKE=C:\Program Files\CMake 2.8 4rem For x64 the following might work for you: 5rem set CMAKE=C:\Program Files (x86)\CMake 2.8 6 7rem Specify the path to your MinGW installation 8set MINGW=C:\mingw 9 10rem Choose a build type (debug, release); 11rem uncomment either of the following: 12set BUILD=RelWithDebInfo 13rem set BUILD=Release 14rem set BUILD=Debug 15 16 17rem --------------------------------------------------------- 18rem Preparing environment... 19set PATH=%PATH%;%CMAKE%\bin;%MINGW%\bin 20rem Calling CMake... 21cmake.exe -G "MinGW Makefiles" . -DCMAKE_BUILD_TYPE="%BUILD%" 22rem Compile 23mingw32-make.exe 24 25echo 26echo All done. 27pause 28