CMakeLists.txt 2.86 KB
Newer Older
1
project(Modules)
2

3
4
5
6
7
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
IF(COMMAND CMAKE_POLICY)
  CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
8

9
 
10
11
12
if(NOT Slicer3_SOURCE_DIR)
  find_package(Slicer3 REQUIRED)
  include(${Slicer3_USE_FILE})
13
  slicer3_set_default_install_prefix_for_external_projects()
14
15
16
17
18
19
20
21
22
23
endif(NOT Slicer3_SOURCE_DIR)

find_package(GenerateLM REQUIRED)
if(GenerateLM_FOUND)
  include(${GenerateLM_USE_FILE})
endif(GenerateLM_FOUND)

# Dependencies (to be untangled later, for now the whole directory has to
# be built at the same time)
#
24
# Volumes:
25
26
#   - CommandLineModule
#   - Tractography (SlicerTractographyDisplay, SlicerTractographyFiducialSeeding)
27
# EMSegment:
28
29
30
#   - Volumes
#   - CommandLineModule (at run-time for its CLP Plugins: EMSegmentCommandLine*)
# QueryAtlas:
31
# MRAblation (if it wasn't broken):
32
#   - Volumes
33
# Editor:
34
#   - ScriptedModule (at run-time for its Tcl package)
35
# Meshing:
36
#   - CommandLineModule (at run-time for its CLP Plugins: VoxelMeshModule)
37
# Python:
38
#   - CommandLineModule or ScriptedModule (at run-time for its Python Plugins)
39
# PythonGADScriptedModule:
40
#   - ScriptedModule (at run-time for its Python scripts)
41
# SlicerDaemon:
42
43
#   - ScriptedModule (at run-time for its Tcl package)

44
SET(modules
45
  #AtlasCreator <- culled from slicer 3.6
46
47
  CommandLineModule
  Editor
pieper's avatar
pieper committed
48
  Endoscopy
49
50
51
52
53
54
55
  GradientAnisotropicDiffusionFilter
  Meshing
  Python
# PythonGADScriptedModule
  QueryAtlas
  FetchMI
  SlicerWelcome
56
  DiffusionWelcome
57
58
  RegistrationWelcome
  SegmentationWelcome
59
60
61
62
63
64
  ScriptedModule
  ScriptedModuleExample
  SlicerDaemon
  Statistics
  Tractography
# TumorGrowth
65
  Volumes
66
67
  ChangeTracker # AF: refactoring TumorGrowth...
  VolumeRendering
68
#  VolumeRendering1 <- merged into VolumeRendering
69
70
71
# WFEngineModule  <- can't work with 2.6 and Win32??
# MRAblation <- not working either
  ModelMirror
72
  ModelTransform
73
  # EMSegment # EMSegment is build from the top-level cmake
74
  # DistanceTransformModel <- culled from slicer 3.6
75
76
77
  ClipModel
  Measurements
  ModelIntoLabelVolume
78
# ExtractSubvolume <- replaced by ExtractSubvolumeROI
79
80
  FastMarchingSegmentation
  FourDImage
tokuda's avatar
tokuda committed
81
#  FourDAnalysis
82
83
#  ExtractSubvolumeROI <- renamed to CropVolume
  CropVolume
awiles's avatar
awiles committed
84
  CollectFiducials
85
  PETCTFusion
awiles's avatar
awiles committed
86
  IGTToolSelector
87
  )
88

89
if(Slicer_USE_OPENIGTLINK)
90
91
  SET(modules
    ${modules}
92
93
    OpenIGTLinkIF
    NeuroNav
tokuda's avatar
tokuda committed
94
    ProstateNav
95
    BrainlabModule
hliu's avatar
hliu committed
96
97
    # IGTNavigation
    # OpenCV
98
    )
99
endif(Slicer_USE_OPENIGTLINK)
100

101
102
103
104
FOREACH(module ${modules})
  ADD_SUBDIRECTORY(${module})
ENDFOREACH(module)

105
106
107
108
109
## SLICES_DEBUG
## GAD_DEBUG
## MODELS_DEBUG
## VOLUMES_DEBUG
## QUERYATLAS_DEBUG
110
## FETCHMI_DEBUG
111
## WELCOME_DEBUG
112
113
114
115
116
117
118
119
120
121
## COLORS_DEBUG
## FIDUCIALS_DEBUG
## CAMERA_DEBUG
## EMSEG_DEBUG
## REALTIMEIMAGING_DEBUG
## MRABLATION_DEBUG
## TRACTOGRAPHY_DEBUG
## COMMANDLINE_DEBUG
## DEAMON_DEBUG

122
if(Slicer3_BUILD_TESTING)
123
  ADD_SUBDIRECTORY(Testing)
124
endif(Slicer3_BUILD_TESTING)
125