File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -6,26 +6,26 @@ if(NOT ITK_TAG)
6
6
set (ITK_TAG "48ff8821533ef4a4fac7b81e2800e796132a1216" )
7
7
endif ()
8
8
9
- set ( _vtk_args )
10
- if ( VTK_DIR OR ITKExamples_USE_VTK )
9
+ set (_vtk_args )
10
+ if (VTK_DIR OR ITKExamples_USE_VTK )
11
11
set ( _vtk_args "-DVTK_DIR:PATH=${VTK_DIR} "
12
12
-DModule_ITKVtkGlue:BOOL=ON
13
13
-DModule_ITKLevelSetsv4Visualization:BOOL=ON
14
14
)
15
15
else ()
16
- set ( _vtk_args
16
+ set (_vtk_args
17
17
-DModule_ITKVtkGlue:BOOL=OFF
18
18
-DModule_ITKLevelSetsv4Visualization:BOOL=OFF
19
19
)
20
20
endif ()
21
21
22
- set ( _opencv_args )
23
- if ( OpenCV_DIR OR ITKExamples_USE_OpenCV )
22
+ set (_opencv_args )
23
+ if (OpenCV_DIR OR ITKExamples_USE_OpenCV )
24
24
set ( _opencv_args "-DOpenCV_DIR:PATH=${OpenCV_DIR} "
25
25
-DModule_ITKVideoBridgeOpenCV:BOOL=ON
26
26
)
27
27
else ()
28
- set ( _opencv_args
28
+ set (_opencv_args
29
29
-DModule_ITKVideoBridgeOpenCV:BOOL=OFF
30
30
)
31
31
endif ()
@@ -41,6 +41,13 @@ if(ITKExamples_USE_WRAP_PYTHON)
41
41
)
42
42
endif ()
43
43
44
+ set (_apple_args )
45
+ if (APPLE )
46
+ set (_apple_args
47
+ "-DBUILD_SHARED_LIBS:BOOL=ON"
48
+ )
49
+ endif ()
50
+
44
51
ExternalProject_Add (ITK
45
52
GIT_REPOSITORY "${git_protocol} ://github.com/InsightSoftwareConsortium/ITK.git"
46
53
GIT_TAG "${ITK_TAG} "
@@ -63,6 +70,7 @@ ExternalProject_Add(ITK
63
70
${_vtk_args}
64
71
${_opencv_args}
65
72
${_wrap_python_args}
73
+ ${_apple_args}
66
74
INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "ITK install skipped"
67
75
DEPENDS ${ITK_DEPENDENCIES} ${_python_depends} zlib
68
76
LOG_BUILD 0
You can’t perform that action at this time.
0 commit comments