File: install.bat

package info (click to toggle)
seqan3 3.0.2%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,052 kB
  • sloc: cpp: 144,641; makefile: 1,288; ansic: 294; sh: 228; xml: 217; javascript: 50; python: 27; php: 25
file content (34 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (18)
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