Commit 20a42288 authored by finetjul's avatar finetjul

ENH: Add Slicer_BUILD_DIFFUSION_SUPPORT

Controls whether Diffusion related modules are built or not.
It concernes all the DWI, DTI and Tractography modules.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21549 3bd1e089-480b-0410-8dfb-8563597acbee
parent 41e54aae
......@@ -19,6 +19,7 @@ set(Slicer_USE_PYTHONQT_WITH_TCL "@Slicer_USE_PYTHONQT_WITH_TCL@")
set(Slicer_USE_QtTesting "@Slicer_USE_QtTesting@")
set(Slicer_BUILD_CLI_SUPPORT "@Slicer_BUILD_CLI_SUPPORT@")
set(Slicer_BUILD_DICOM_SUPPORT "@Slicer_BUILD_DICOM_SUPPORT@")
set(Slicer_BUILD_DIFFUSION_SUPPORT "@Slicer_BUILD_DIFFUSION_SUPPORT@")
set(Slicer_BUILD_EXTENSIONMANAGER_SUPPORT "@Slicer_BUILD_EXTENSIONMANAGER_SUPPORT@")
set(Slicer_BUILD_TESTING "@BUILD_TESTING@")
......
......@@ -58,6 +58,7 @@
#endif
#cmakedefine Slicer_BUILD_DICOM_SUPPORT
#cmakedefine Slicer_BUILD_DIFFUSION_SUPPORT
#cmakedefine Slicer_BUILD_CLI_SUPPORT
#cmakedefine Slicer_BUILD_CLI
......
......@@ -194,6 +194,7 @@ option(WITH_MEMCHECK "Run tests through valgrind." OFF)
option(WITH_COVERAGE "Enable/Disable coverage" OFF)
option(Slicer_USE_VTK_DEBUG_LEAKS "Enable VTKs Debug Leaks functionality in both VTK and Slicer." ON)
option(Slicer_BUILD_DICOM_SUPPORT "Build Slicer with DICOM support" ON)
option(Slicer_BUILD_DIFFUSION_SUPPORT "Build Slicer with diffusion (DWI, DTI) support" ON)
option(Slicer_BUILD_QTLOADABLEMODULES "Build Slicer QT Loadable Modules" ON)
mark_as_advanced(Slicer_BUILD_QTLOADABLEMODULES)
option(Slicer_USE_PYTHONQT "Integrate a python-QT interpreter into Slicer." ON)
......
......@@ -11,13 +11,6 @@ set(cli_modules
CheckerBoardFilter
# ConnectedComponent
CurvatureAnisotropicDiffusion
DiffusionTensorScalarMeasurements
DiffusionWeightedVolumeMasking
DWIJointRicianLMMSEFilter
DWIRicianLMMSEFilter
DWIToDTIEstimation
DWIUnbiasedNonLocalMeansFilter
DTIImportExport
ExecutionModelTour
ExtractSkeleton
FreesurferSurfaceSectionExtraction
......@@ -38,13 +31,12 @@ set(cli_modules
N4ITKBiasFieldCorrection
OrientScalarVolume
ProbeVolumeWithModel
ResampleDTIVolume
ResampleScalarVectorDWIVolume # Depends on DiffusionApplications
ResampleDTIVolume # Needed by ResampleScalarVectorDWIVolume
ResampleScalarVectorDWIVolume # Depends on DiffusionApplications, needed by CropVolume
RobustStatisticsSegmenter
SimpleRegionGrowingSegmentation
SubtractScalarVolumes
ThresholdScalarVolume
TractographyLabelMapSeeding
VotingBinaryHoleFillingImageFilter
)
......@@ -53,6 +45,19 @@ if(Slicer_BUILD_DICOM_SUPPORT)
list(APPEND cli_modules PETStandardUptakeValueComputation)
endif()
if(Slicer_BUILD_DIFFUSION_SUPPORT)
list(APPEND cli_modules
DiffusionTensorScalarMeasurements
DiffusionWeightedVolumeMasking
DWIJointRicianLMMSEFilter
DWIRicianLMMSEFilter
DWIToDTIEstimation
DWIUnbiasedNonLocalMeansFilter
DTIImportExport
TractographyLabelMapSeeding
)
endif()
if(Slicer_BUILD_LEGACY_CLI)
set(legacy_cli_modules
AffineRegistration
......
......@@ -17,11 +17,9 @@ set(qtmodules
#FiberBundles
SceneViews
SlicerWelcome
TractographyDisplay
Reformat
ViewControllers
Volumes
TractographyInteractiveSeeding # tractography depends of Volumes
VolumeRendering # Volume Rendering depends of Volumes
)
if(Slicer_BUILD_CLI_SUPPORT)
......@@ -29,6 +27,12 @@ if(Slicer_BUILD_CLI_SUPPORT)
CropVolume
)
endif()
if(Slicer_BUILD_DIFFUSION_SUPPORT)
list(APPEND qtmodules
TractographyDisplay
TractographyInteractiveSeeding # tractography depends of Volumes
)
endif()
foreach(module ${qtmodules})
list(FIND Slicer_QTLOADABLEMODULES_DISABLED ${module} _module_disabled)
......
......@@ -48,13 +48,17 @@ ctkMacroCompilePythonScript(
NO_INSTALL_SUBDIR
)
add_subdirectory(
DICOM2FullBrainTractography
)
if(Slicer_BUILD_DICOM_SUPPORT)
if(Slicer_BUILD_DIFFUSION_SUPPORT)
add_subdirectory(
DICOM2FullBrainTractography
)
endif()
add_subdirectory(
DICOMPlugins
)
add_subdirectory(
DICOMPlugins
)
endif()
if(BUILD_TESTING AND PYTHON_EXECUTABLE)
add_subdirectory(Testing)
......
set(extensions DataProbe
DICOM
LabelStatistics
PerformanceTests
SampleData)
SampleData
)
if(Slicer_BUILD_DICOM_SUPPORT)
list(APPEND extensions
DICOM
)
endif()
if(Slicer_USE_PYTHONQT_WITH_TCL)
list(APPEND extensions
......
......@@ -191,6 +191,7 @@ set(ep_cmake_boolean_args
Slicer_BUILD_CLI
Slicer_BUILD_CLI_SUPPORT
Slicer_BUILD_DICOM_SUPPORT
Slicer_BUILD_DIFFUSION_SUPPORT
Slicer_BUILD_EXTENSIONMANAGER_SUPPORT
Slicer_BUILD_QTLOADABLEMODULES
Slicer_BUILD_QTSCRIPTEDMODULES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment