Skip to content

Instantly share code, notes, and snippets.

@CyberShadow
Created February 27, 2015 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CyberShadow/839e458153787a298b6b to your computer and use it in GitHub Desktop.
Save CyberShadow/839e458153787a298b6b to your computer and use it in GitHub Desktop.
@echo off
rem This batch file assumes that CMake is installed in C:\Cmake,
rem MinGW-32 in C:\mingw32, and MinGW-64 in C:\mingw64.
call :oneplatform 32
call :oneplatform 64
goto :eof
:oneplatform
set PATH=%WINDIR%\System32;%WINDIR%;C:\cmake\bin;C:\mingw%1\bin
set MAKE=
cmake -Wno-dev -G "MinGW Makefiles" -H. -Bbuild/%1
if errorlevel 1 exit /b 1
cmake --build build/%1
if errorlevel 1 exit /b 1
goto :eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment