Skip to content

Instantly share code, notes, and snippets.

@LB--
Last active January 1, 2016 17:39
Show Gist options
  • Save LB--/8178440 to your computer and use it in GitHub Desktop.
Save LB--/8178440 to your computer and use it in GitHub Desktop.
rebuild.bat - Windows build script for ChessPlusPlus
del /s /f /q .\build\* && for /f %%f in ('dir /ad /b .\build\ ') do rd /s /q .\build\%f
title ChessPlusPlus-Build && mkdir build
cd build && cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_FLAGS="-DCHESSPP_TRUNC_LOGS=1 -Wall -Wextra -pedantic -Winit-self -Wredundant-decls -Wcast-align -Wfloat-equal -Wunreachable-code -Wmissing-include-dirs -Wmain -Werror -Wfatal-errors -Wno-unused-parameter -Wno-unused-local-typedefs" -DSTATIC_BUILD=1 -DBOOST_ROOT=C:/MinGW -DSFML_ROOT=C:/MinGW ../
cmd /k "make"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment