Slicer3InstallConfig.cmake.in 6.67 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
#
# Slicer3Config.cmake - Slicer3 CMake configuration file for external projects
#
# This file is configured by Slicer3 and used by UseSlicer3.cmake module
# to load Slicer3's settings for an external project. External projects
# can use these setting to build new modules against a Slicer3 build tree
# or a Slicer3 installation.
#

# The C and C++ flags added by Slicer3 to the cmake-configured flags.
11
12
13
set(Slicer3_REQUIRED_C_FLAGS "@Slicer3_REQUIRED_C_FLAGS@")
set(Slicer3_REQUIRED_CXX_FLAGS "@Slicer3_REQUIRED_CXX_FLAGS@")
set(Slicer3_REQUIRED_LINK_FLAGS "@Slicer3_REQUIRED_LINK_FLAGS@")
14
15

# The Slicer3 version number
16
17
18
set(Slicer_VERSION_MAJOR "@Slicer_VERSION_MAJOR@")
set(Slicer_VERSION_MINOR "@Slicer_VERSION_MINOR@")
set(Slicer_VERSION_PATCH "@Slicer_VERSION_PATCH@")
19
20
21
22

# Whether Slicer3 was built with modules and CLI support.
set(Slicer3_BUILD_MODULES "@Slicer3_BUILD_MODULES@")
set(Slicer3_BUILD_CLI "@Slicer3_BUILD_CLI@")
jcfr's avatar
jcfr committed
23
24
25
IF(Slicer3_USE_QT)
  set(Slicer3_BUILD_QTLOADABLEMODULES "@Slicer3_BUILD_QTLOADABLEMODULES@")
ENDIF(Slicer3_USE_QT)
26

27
# Whether Slicer3 was built with shared libraries.
28
set(Slicer3_BUILD_SHARED "@BUILD_SHARED_LIBS@")
29

30
# Slicer3 options
31
set(Slicer_USE_BatchMake "@Slicer_USE_BatchMake@")
32
set(Slicer3_USE_IGSTK "@Slicer3_USE_IGSTK@")
33
set(Slicer_USE_MIDAS "@Slicer_USE_MIDAS@")
34
35
36
37
set(Slicer3_USE_NAVITRACK "@Slicer3_USE_NAVITRACK@")
set(Slicer3_USE_NUMPY "@Slicer3_USE_NUMPY@")
set(Slicer3_USE_PYTHON "@Slicer3_USE_PYTHON@")
set(Slicer3_USE_OPENTRACKER "@Slicer3_USE_OPENTRACKER@")
38
39
40
41

# Slicer could be installed anywhere, so set all paths based on where 
# this file was found (which should be the lib/Slicer3 directory of the 
# installation)
42
43
44
45
46
47
48
get_filename_component(Slicer3_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

# Slicer home (top of the tree)
set(Slicer3_HOME "${Slicer3_CONFIG_DIR}/../..")
get_filename_component(Slicer3_HOME ${Slicer3_HOME} ABSOLUTE)

# The CMake macros dir.
49
set(Slicer_CMAKE_DIR "${Slicer3_HOME}/@Slicer_INSTALL_LIB_DIR@/CMake")
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

# Slicer3 Libs libraries.  Those listed here should
# automatically pull in their dependencies.
set(Slicer3_Libs_LIBRARIES "@Slicer3_Libs_LIBRARIES@")

# Slicer3 Libs library directories.
set(Slicer3_Libs_LIBRARY_DIRS 
  "${Slicer3_HOME}/lib/FreeSurfer"
  "${Slicer3_HOME}/lib/IGT"
  "${Slicer3_HOME}/lib/ITKCommandIO"
  "${Slicer3_HOME}/lib/LoadableModule"
  "${Slicer3_HOME}/lib/MGHImageIO"
  "${Slicer3_HOME}/lib/MRML"
  "${Slicer3_HOME}/lib/MRMLIDImageIO"
  "${Slicer3_HOME}/lib/ModuleDescriptionParser"
  "${Slicer3_HOME}/lib/Qdec"
  "${Slicer3_HOME}/lib/RemoteIO"
  "${Slicer3_HOME}/lib/SlicerIO"
  "${Slicer3_HOME}/lib/tclap"
  "${Slicer3_HOME}/lib/vtkITK"
  "${Slicer3_HOME}/lib/vtkTeem"
71
72
73
  "${Slicer3_HOME}/lib/TclTk/lib"
  "${Slicer3_HOME}/lib/TclTk/lib/itcl@INCR_TCL_VERSION_DOT@"
  "${Slicer3_HOME}/lib/TclTk/lib/itk@INCR_TCL_VERSION_DOT@"
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
  )

# Slicer3 Libs include file directories.
set(Slicer3_Libs_INCLUDE_DIRS 
  "${Slicer3_HOME}/include/FreeSurfer"
  "${Slicer3_HOME}/include/IGT"
  "${Slicer3_HOME}/include/ITKCommandIO"
  "${Slicer3_HOME}/include/LoadableModule"
  "${Slicer3_HOME}/include/MGHImageIO"
  "${Slicer3_HOME}/include/MRML"
  "${Slicer3_HOME}/include/MRMLIDImageIO"
  "${Slicer3_HOME}/include/ModuleDescriptionParser"
  "${Slicer3_HOME}/include/Qdec"
  "${Slicer3_HOME}/include/RemoteIO"
  "${Slicer3_HOME}/include/SlicerIO"
  "${Slicer3_HOME}/include/tclap"
  "${Slicer3_HOME}/include/vtkITK"
  "${Slicer3_HOME}/include/vtkTeem"
  )

# Slicer3 Base libraries.  Those listed here should
# automatically pull in their dependencies.
set(Slicer3_Base_LIBRARIES "@Slicer3_Base_LIBRARIES@")

# Slicer3 Base library directories.
set(Slicer3_Base_LIBRARY_DIRS 
100
  "${Slicer3_HOME}/@Slicer_INSTALL_LIB_DIR@"
101
102
103
104
  )

# Slicer3 Base include file directories.
set(Slicer3_Base_INCLUDE_DIRS 
105
106
107
108
  "${Slicer3_HOME}/@Slicer_INSTALL_INCLUDE_DIR@" 
  "${Slicer3_HOME}/@Slicer_INSTALL_INCLUDE_DIR@/SlicerBaseCLI" 
  "${Slicer3_HOME}/@Slicer_INSTALL_INCLUDE_DIR@/SlicerBaseGUI" 
  "${Slicer3_HOME}/@Slicer_INSTALL_INCLUDE_DIR@/SlicerBaseLogic" 
109
  )
110

111
# The location of the UseSlicer3.cmake file.
112
set(Slicer3_USE_FILE "${Slicer3_CONFIG_DIR}/UseSlicer3.cmake")
113
114

# The build settings file.
115
set(Slicer3_BUILD_SETTINGS_FILE 
116
  "${Slicer3_CONFIG_DIR}/Slicer3BuildSettings.cmake")
117

118
# The Slicer3 relative install directories.
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
set(Slicer_INSTALL_BIN_DIR "@Slicer_INSTALL_BIN_DIR@")
set(Slicer_INSTALL_LIB_DIR "@Slicer_INSTALL_LIB_DIR@")
set(Slicer_INSTALL_INCLUDE_DIR "@Slicer_INSTALL_INCLUDE_DIR@")
set(Slicer_INSTALL_SHARE_DIR "@Slicer_INSTALL_SHARE_DIR@")
set(Slicer_INSTALL_ITKFACTORIES_DIR "@Slicer_INSTALL_ITKFACTORIES_DIR@")

set(Slicer_INSTALL_PLUGINS_BIN_DIR "@Slicer_INSTALL_PLUGINS_BIN_DIR@")
set(Slicer_INSTALL_PLUGINS_LIB_DIR "@Slicer_INSTALL_PLUGINS_LIB_DIR@")
set(Slicer_INSTALL_PLUGINS_INCLUDE_DIR "@Slicer_INSTALL_PLUGINS_INCLUDE_DIR@")
set(Slicer_INSTALL_PLUGINS_SHARE_DIR "@Slicer_INSTALL_PLUGINS_SHARE_DIR@")
set(Slicer_INSTALL_PLUGINS_CACHE_DIR "@Slicer_INSTALL_PLUGINS_CACHE_DIR@")

set(Slicer_INSTALL_MODULES_BIN_DIR "@Slicer_INSTALL_MODULES_BIN_DIR@")
set(Slicer_INSTALL_MODULES_LIB_DIR "@Slicer_INSTALL_MODULES_LIB_DIR@")
set(Slicer_INSTALL_MODULES_INCLUDE_DIR "@Slicer_INSTALL_MODULES_INCLUDE_DIR@")
set(Slicer_INSTALL_MODULES_SHARE_DIR "@Slicer_INSTALL_MODULES_SHARE_DIR@")
135

jcfr's avatar
jcfr committed
136
137
138
139
140
141
142
IF(Slicer3_USE_QT AND Slicer3_BUILD_QTLOADABLEMODULES)
  set(Slicer3_INSTALL_QTLOADABLEMODULES_BIN_DIR "@Slicer3_INSTALL_QTLOADABLEMODULES_BIN_DIR@")
  set(Slicer3_INSTALL_QTLOADABLEMODULES_LIB_DIR "@Slicer3_INSTALL_QTLOADABLEMODULES_LIB_DIR@")
  set(Slicer3_INSTALL_QTLOADABLEMODULES_INCLUDE_DIR "@Slicer3_INSTALL_QTLOADABLEMODULES_INCLUDE_DIR@")
  set(Slicer3_INSTALL_QTLOADABLEMODULES_SHARE_DIR "@Slicer3_INSTALL_QTLOADABLEMODULES_SHARE_DIR@")
ENDIF(Slicer3_USE_QT AND Slicer3_BUILD_QTLOADABLEMODULES)

143
144
# Components needed to build modules from outside a Slicer3 build tree or 
# from outside a Slicer3 installation tree
145
146
set(TCLAP_DIR "${Slicer3_HOME}/lib/tclap")
set(ModuleDescriptionParser_DIR "${Slicer3_HOME}/lib/ModuleDescriptionParser")
147
148
149
150
set(GenerateCLP_DIR "${Slicer3_HOME}/lib/GenerateCLP")
set(GenerateLM_DIR "${Slicer3_HOME}/lib/GenerateLM")
set(ITK_DIR "${Slicer3_HOME}/lib/InsightToolkit")
set(KWWidgets_DIR "${Slicer3_HOME}/lib/KWWidgets")
151
set(LoadableModule_DIR "${Slicer3_HOME}/lib/LoadableModule")
152
set(Teem_DIR "${Slicer3_HOME}/lib/Teem-@Teem_VERSION_MAJOR@.@Teem_VERSION_MINOR@.@Teem_VERSION_PATCH@")
153
set(VTK_DIR "${Slicer3_HOME}/lib/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@")
154
set(PYTHON_INCLUDE_PATH "@PYTHON_INCLUDE_PATH@")
155
156
157
158
get_filename_component(PYTHON_LIB_FILE "${PYTHON_LIBRARY}" NAME)
set(PYTHON_LIBRARIES "${Slicer3_HOME}/lib/Python/lib/${PYTHON_LIB_FILE}")
get_filename_component(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_PATH}" NAME)
set(PYTHON_INCLUDE_PATH "${Slicer3_HOME}/lib/Python/include/${PYTHON_INCLUDE_DIR}")