Skip to content

Commit

Permalink
Add option for MINC2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevenyi committed Jul 10, 2015
1 parent 88767bb commit fa8213b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ CMAKE_DEPENDENT_OPTION(
"BUILD_STYLE_UTILS" OFF
)

option(ITK_BUILD_MINC_SUPPORT "Build support for MINC2" OFF)

set(EXTERNAL_PROJECT_BUILD_TYPE "Release" CACHE STRING "Default build type for support libraries")


Expand Down
7 changes: 7 additions & 0 deletions SuperBuild/External_ITKv4.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ if(NOT DEFINED ${extProjName}_DIR AND NOT ${USE_SYSTEM_${extProjName}})
-DITK_USE_FFTWD:BOOL=ON
)
endif()
if(${extProjName}_BUILD_MINC_SUPPORT)
set(${proj}_MINC_ARGS
-DModule_ITKIOMINC:BOOL=ON
-DModule_ITKMINC:BOOL=ON
)
endif()

set(${proj}_WRAP_ARGS)
#if(foo)
Expand Down Expand Up @@ -126,6 +132,7 @@ if(NOT DEFINED ${extProjName}_DIR AND NOT ${USE_SYSTEM_${extProjName}})
${${proj}_WRAP_ARGS}
${${proj}_FFTWF_ARGS}
${${proj}_FFTWD_ARGS}
${${proj}_MINC_ARGS}
)

if( USE_VTK STREQUAL "ON" )
Expand Down

0 comments on commit fa8213b

Please sign in to comment.