File tree Expand file tree Collapse file tree 4 files changed +39
-10
lines changed Expand file tree Collapse file tree 4 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 2
2
# Get and build itk
3
3
4
4
if (NOT ITK_TAG )
5
- # 2018-09-26
6
- set (ITK_TAG "b784f6355a88650f13345025ece292dd60a0d98c " )
5
+ # 2018-09-27
6
+ set (ITK_TAG "5e61c289a677a74bffa4c113bf991a18f4b98495 " )
7
7
endif ()
8
8
9
9
set (_vtk_args )
@@ -47,6 +47,14 @@ if(APPLE)
47
47
"-DBUILD_SHARED_LIBS:BOOL=ON"
48
48
)
49
49
endif ()
50
+ set (_windows_args )
51
+ set (_zlib_deps zlib )
52
+ if (WIN32 )
53
+ set (_windows_args
54
+ "-DITK_USE_SYSTEM_ZLIB:BOOL=OFF"
55
+ )
56
+ set (_zlib_deps )
57
+ endif ()
50
58
51
59
ExternalProject_Add (ITK
52
60
GIT_REPOSITORY "${git_protocol} ://github.com/InsightSoftwareConsortium/ITK.git"
@@ -71,8 +79,9 @@ ExternalProject_Add(ITK
71
79
${_opencv_args}
72
80
${_wrap_python_args}
73
81
${_apple_args}
82
+ ${_windows_args}
74
83
INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "ITK install skipped"
75
- DEPENDS ${ITK_DEPENDENCIES} ${_python_depends} zlib
84
+ DEPENDS ${ITK_DEPENDENCIES} ${_python_depends} ${_zlib_deps}
76
85
LOG_BUILD 0
77
86
)
78
87
Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ ExternalProject_Add(zlib
9
9
BINARY_DIR zlib-build
10
10
INSTALL_DIR zlib-install
11
11
CMAKE_CACHE_ARGS
12
- ## CXX should not be needed, but it a cmake default test
13
- -DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
14
- -DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER}
12
+ ${ep_common_args}
15
13
-DZLIB_MANGLE_PREFIX:STRING=itkexamples_zlib_
16
14
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
17
15
)
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ endif()
31
31
set (ITKExamples_DEPENDENCIES )
32
32
set (ITK_DEPENDENCIES )
33
33
34
- # Used by ITK, VTK, and Python -- always build it.
35
- include (${CMAKE_SOURCE_DIR} /External-zlib.cmake )
34
+ # Used by ITK, VTK, -- always build it.
35
+ if (NOT WIN32 OR ITKExamples_USE_VTK AND NOT VTK_DIR )
36
+ include (${CMAKE_SOURCE_DIR} /External-zlib.cmake )
37
+ endif ()
36
38
37
39
option (ITKExamples_USE_OpenCV "Add OpenCV to the superbuild" OFF )
38
40
if (NOT OpenCV_DIR AND ITKExamples_USE_OpenCV )
Original file line number Diff line number Diff line change 13
13
git submodule update --init --recursive
14
14
popd
15
15
16
- git clone -b dashboard --single-branch https://github.com/thewtex /ITKExamples.git ITKExamples-dashboard
16
+ git clone -b dashboard --single-branch https://github.com/InsightSoftwareConsortium /ITKExamples.git ITKExamples-dashboard
17
17
18
18
sudo pip3 install ninja
19
19
sudo apt-get install -y python3-venv
39
39
git submodule update --init --recursive
40
40
popd
41
41
42
- git clone -b dashboard --single-branch https://github.com/thewtex /ITKExamples.git ITKExamples-dashboard
42
+ git clone -b dashboard --single-branch https://github.com/InsightSoftwareConsortium /ITKExamples.git ITKExamples-dashboard
43
43
44
44
sudo pip3 install ninja
45
45
49
49
ctest -S ITKExamples-dashboard/azure_dashboard.cmake -VV -j 4
50
50
displayName: Build and Test
51
51
workingDirectory: $(Agent.BuildDirectory)
52
+
53
+ - job : Windows
54
+ timeoutInMinutes : 0
55
+ cancelTimeoutInMinutes : 60
56
+ pool :
57
+ vmImage : ' vs2017-win2016'
58
+ steps :
59
+ - script : |
60
+ git clone -b dashboard --single-branch https://github.com/InsightSoftwareConsortium/ITKExamples.git ITKExamples-dashboard
61
+
62
+ pip3 install ninja
63
+
64
+ cmake --version
65
+
66
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
67
+ set CC=cl.exe
68
+ set CXX=cl.exe
69
+ ctest -S ITKExamples-dashboard/azure_dashboard.cmake -VV -j 4
70
+ displayName: Build and Test
71
+ workingDirectory: $(Agent.BuildDirectory)
You can’t perform that action at this time.
0 commit comments