-
Notifications
You must be signed in to change notification settings - Fork 0
/
External-ITK.cmake
32 lines (30 loc) · 1.09 KB
/
External-ITK.cmake
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
#---------------------------------------------------------------------------
# Get and build itk
set(ITK_TAG "87f5d83f15929900aea038abed43d46a14b69886")
ExternalProject_Add(ITK
GIT_REPOSITORY "https://github.com/Slicer/ITK.git"
GIT_TAG "${ITK_TAG}"
SOURCE_DIR ITK
BINARY_DIR ITK-build
CMAKE_GENERATOR ${gen}
CMAKE_ARGS
-DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
-DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER}
-DCMAKE_CXX_STANDARD:STRING=${CMAKE_CXX_STANDARD}
-DCMAKE_CXX_STANDARD_REQUIRED:BOOL=${CMAKE_CXX_STANDARD_REQUIRED}
-DCMAKE_CXX_EXTENSIONS:BOOL=${CMAKE_CXX_EXTENSIONS}
-DBUILD_TESTING:BOOL=OFF
-DBUILD_EXAMPLES:BOOL=OFF
-DITK_LEGACY_REMOVE:BOOL=ON
-DITKV3_COMPATIBILITY:BOOL=OFF
-DITK_BUILD_DEFAULT_MODULES:BOOL=ON
-DModule_ITKIONIFTI:BOOL=ON
-DModule_ITKIONRRD:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=OFF
-DITK_INSTALL_NO_DEVELOPMENT:BOOL=ON
-DITK_WRAPPING:BOOL=OFF #${BUILD_SHARED_LIBS} ## HACK: QUICK CHANGE
-DITK_USE_FFTWD:BOOL=OFF
-DITK_USE_FFTWF:BOOL=OFF
INSTALL_COMMAND ""
)
set(ITK_DIR ${CMAKE_BINARY_DIR}/ITK-build)