forked from SuperElastix/SuperElastix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
33 lines (33 loc) · 2.24 KB
/
appveyor.yml
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
os:
- Visual Studio 2013
- Visual Studio 2015
- Visual Studio 2017
shallow_clone: false
skip_tags: true
clone_folder: c:\superelastix-source
configuration:
- Release
platform:
- x86
- x64
environment:
ITK_URL: https://github.com/InsightSoftwareConsortium/ITK
ITK_SOURCE_DIR: c:\ITK-source
ITK_BUILD_DIR: c:\ITK-build
ELASTIX_URL: https://github.com/SuperElastix/elastix
ELASTIX_SOURCE_DIR: c:\elastix-source
ELASTIX_BUILD_DIR: c:\elastix-build
SUPERELASTIX_SOURCE_DIR: c:\superelastix-source\SuperBuild
SUPERELASTIX_BUILD_DIR: c:\superelastix-build
BUILT_CACHE_STAMP: c:\BUILT_CACHE
cache:
- '%ITK_SOURCE_DIR%'
- '%ITK_BUILD_DIR%'
- '%ELASTIX_SOURCE_DIR%'
- '%ELASTIX_BUILD_DIR%'
build_script:
- cmd: if not exist %ITK_SOURCE_DIR% git clone %ITK_URL% %ITK_SOURCE_DIR% && cd %ITK_SOURCE_DIR% && git checkout v4.12.2
- cmd: if not exist %ITK_BUILD_DIR% mkdir %ITK_BUILD_DIR% && cd %ITK_BUILD_DIR% && cmake -DBUILD_EXAMPLES=OFF -DBUILD_TESTING:BOOL=OFF -DITK_BUILD_DEFAULT_MODULES:BOOL=OFF -DITKGroup_IO:BOOL=ON -DModule_ITKDistanceMap:BOOL=ON -DModule_ITKImageFusion:BOOL=ON -DModule_ITKLabelMap:BOOL:=ON -DModule_ITKMathematicalMorphology:BOOL=ON -DModule_ITKOptimizers:BOOL=ON -DModule_ITKOptimizersv4:BOOL=ON -DModule_ITKRegistrationCommon:BOOL=ON -DModule_ITKVideoIO:BOOL=ON-DCMAKE_BUILD_TYPE=Release %ITK_SOURCE_DIR% && cmake --build . --config Release -- /m && @echo BUILT_CACHE > %BUILT_CACHE_STAMP%
- cmd: if not exist %ELASTIX_SOURCE_DIR% git clone %ELASTIX_URL% %ELASTIX_SOURCE_DIR% && cd %ELASTIX_SOURCE_DIR% && git checkout e8354222396c6bd78e9fe6d5a39e4ecac4bb0d52
- cmd: if not exist %ELASTIX_BUILD_DIR% mkdir %ELASTIX_BUILD_DIR% && cd %ELASTIX_BUILD_DIR% && cmake -DITK_DIR=%ITK_BUILD_DIR% -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF %ELASTIX_SOURCE_DIR% && cmake --build . --config Release -- /m && ctest -j4 -VV -C Release && @echo BUILT_CACHE > %BUILT_CACHE_STAMP%
- cmd: if not exist %BUILT_CACHE_STAMP% mkdir -p %SUPERELASTIX_BUILD_DIR% && cd %SUPERELASTIX_BUILD_DIR% && cmake -DUSE_SYSTEM_ITK=ON -DITK_DIR=%ITK_BUILD_DIR% -DUSE_SYSTEM_ELASTIX=ON -DElastix_DIR=%ELASTIX_BUILD_DIR% -DCMAKE_BUILD_TYPE=Release %SUPERELASTIX_SOURCE_DIR% && cmake --build . --config Release -- /m && cd SuperElastix-build && ctest -j4 -VV -C Release