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 22# Get and build itk
33
44if (NOT ITK_TAG)
5- # 2018-09-26
6- set (ITK_TAG "b784f6355a88650f13345025ece292dd60a0d98c " )
5+ # 2018-09-27
6+ set (ITK_TAG "5e61c289a677a74bffa4c113bf991a18f4b98495 " )
77endif ()
88
99set (_vtk_args)
@@ -47,6 +47,14 @@ if(APPLE)
4747 "-DBUILD_SHARED_LIBS:BOOL=ON"
4848 )
4949endif ()
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 ()
5058
5159ExternalProject_Add(ITK
5260 GIT_REPOSITORY "${git_protocol} ://github.com/InsightSoftwareConsortium/ITK.git"
@@ -71,8 +79,9 @@ ExternalProject_Add(ITK
7179 ${_opencv_args}
7280 ${_wrap_python_args}
7381 ${_apple_args}
82+ ${_windows_args}
7483 INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "ITK install skipped"
75- DEPENDS ${ITK_DEPENDENCIES} ${_python_depends} zlib
84+ DEPENDS ${ITK_DEPENDENCIES} ${_python_depends} ${_zlib_deps}
7685 LOG_BUILD 0
7786)
7887
Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ ExternalProject_Add(zlib
99 BINARY_DIR zlib-build
1010 INSTALL_DIR zlib-install
1111 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}
1513 -DZLIB_MANGLE_PREFIX:STRING =itkexamples_zlib_
1614 -DCMAKE_INSTALL_PREFIX:PATH =<INSTALL_DIR>
1715 )
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ endif()
3131set (ITKExamples_DEPENDENCIES )
3232set (ITK_DEPENDENCIES )
3333
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 ()
3638
3739option (ITKExamples_USE_OpenCV "Add OpenCV to the superbuild" OFF )
3840if (NOT OpenCV_DIR AND ITKExamples_USE_OpenCV)
Original file line number Diff line number Diff line change 1313 git submodule update --init --recursive
1414 popd
1515
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
1717
1818 sudo pip3 install ninja
1919 sudo apt-get install -y python3-venv
3939 git submodule update --init --recursive
4040 popd
4141
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
4343
4444 sudo pip3 install ninja
4545
4949 ctest -S ITKExamples-dashboard/azure_dashboard.cmake -VV -j 4
5050 displayName: Build and Test
5151 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