Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for MINC2 support to superbuild #198

Merged
merged 1 commit into from
Sep 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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