1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
@echo off
cls
set CUR_DIR=%cd%
echo CUR_DIR=%CUR_DIR%
set SDSL_INSTALL_PREFIX=%USERPROFILE%
if not "%1"=="" (
pushd .
cd %~dp0
set SDSL_INSTALL_PREFIX=%~f1
popd
)
echo Library will be installed in %SDSL_INSTALL_PREFIX%
rem Change to the directory in which this script is located in
cd %~dp0
rem TODO git hook
cd build
if errorlevel 1 (
exit /b %errorlevel%
)
rem TODO clean-up build directory
cmake -DCMAKE_INSTALL_PREFIX="${SDSL_INSTALL_PREFIX}" -G"Visual Studio 14 2015" ..
if errorlevel 1 (
echo ERROR: CMake build failed
exit /b %errorlevel%
)
"%VS140COMNTOOLS%..\IDE\devenv.com" /build release /project sdsl sdsl.sln
|