-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbld.bat
executable file
·38 lines (31 loc) · 911 Bytes
/
bld.bat
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
35
36
37
38
mkdir build
cd build
:: Workaround to make unwanted tools invisible for CMake
:: (E.g., GNU Fortron Compiler)
set PATH=%PATH:C:\ProgramData\chocolatey\bin;=%
set PATH=%PATH:C:\mingw64\bin;=%
set CMAKE_CONFIG="Release"
cmake -LAH -G"NMake Makefiles" ^
-DCMAKE_BUILD_TYPE=%CMAKE_CONFIG% ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DEIGEN_BUILD_PKGCONFIG=ON ^
..
if errorlevel 1 exit 1
cmake --build . --config %CMAKE_CONFIG% --target install
if errorlevel 1 exit 1
rem Just make the basic tests as all the tests take too long to run.
FOR /L %%A IN (1,1,8) DO (
cmake --build . --config %CMAKE_CONFIG% --target basicstuff_%%A
)
ctest -R basicstuff*
if errorlevel 1 exit 1
goto :eof
:TRIM
SetLocal EnableDelayedExpansion
Call :TRIMSUB %%%1%%
EndLocal & set %1=%tempvar%
GOTO :eof
:TRIMSUB
set tempvar=%*
GOTO :eof