forked from i-RIC/iricdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-vtk.cmd
More file actions
21 lines (16 loc) · 798 Bytes
/
build-vtk.cmd
File metadata and controls
21 lines (16 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
setlocal enableextensions
if [%GENERATOR%]==[] (
echo No Generator has been set
exit /b 1
)
call versions.cmd
set VER=%VTK_VER%
if exist lib\src\VTK-%VER% rd /s /q lib\src\VTK-%VER%
if exist lib\build\VTK-%VER% rd /s /q lib\build\VTK-%VER%
if exist lib\install\VTK-%VER% rd /s /q lib\install\VTK-%VER%
7z x VTK-%VER%.zip -o"lib\src"
ctest -S build-vtk.cmake -DCONF_DIR:STRING=debug -DCTEST_CMAKE_GENERATOR:STRING=%GENERATOR% -C Debug -VV -O %SGEN%-vtk-debug.log
ctest -S build-vtk.cmake -DCONF_DIR:STRING=release -DCTEST_CMAKE_GENERATOR:STRING=%GENERATOR% -C Release -VV -O %SGEN%-vtk-release.log
ctest -S build-vtk.cmake -DCONF_DIR:STRING=debug-vtk-leaks -DCTEST_CMAKE_GENERATOR:STRING=%GENERATOR% -C Debug -VV -O %SGEN%-vtk-debug-leaks.log
endlocal