-
Notifications
You must be signed in to change notification settings - Fork 5
/
SlicerInstallConfig.cmake.in
158 lines (137 loc) · 6.54 KB
/
SlicerInstallConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#
# SlicerConfig.cmake - Slicer CMake configuration file for external projects
#
# This file is configured by Slicer and used by UseSlicer.cmake module
# to load Slicer's settings for an external project. External projects
# can use these setting to build new modules against a Slicer build tree
# or a Slicer installation.
#
# The C and C++ flags added by Slicer to the cmake-configured flags.
set(Slicer_REQUIRED_C_FLAGS "@Slicer_REQUIRED_C_FLAGS@")
set(Slicer_REQUIRED_CXX_FLAGS "@Slicer_REQUIRED_CXX_FLAGS@")
set(Slicer_REQUIRED_LINK_FLAGS "@Slicer_REQUIRED_LINK_FLAGS@")
# The Slicer version number
set(Slicer_VERSION_MAJOR "@Slicer_VERSION_MAJOR@")
set(Slicer_VERSION_MINOR "@Slicer_VERSION_MINOR@")
set(Slicer_VERSION_PATCH "@Slicer_VERSION_PATCH@")
# Whether Slicer was built with modules and CLI support.
set(Slicer_BUILD_MODULES "@Slicer_BUILD_MODULES@")
set(Slicer_BUILD_CLI "@Slicer_BUILD_CLI@")
IF(Slicer_USE_QT)
set(Slicer_BUILD_QTLOADABLEMODULES "@Slicer_BUILD_QTLOADABLEMODULES@")
ENDIF(Slicer_USE_QT)
# Whether Slicer was built with shared libraries.
set(Slicer_BUILD_SHARED "@BUILD_SHARED_LIBS@")
# Slicer options
set(Slicer_USE_BatchMake "@Slicer_USE_BatchMake@")
set(Slicer_USE_IGSTK "@Slicer_USE_IGSTK@")
set(Slicer_USE_MIDAS "@Slicer_USE_MIDAS@")
set(Slicer_USE_NAVITRACK "@Slicer_USE_NAVITRACK@")
set(Slicer_USE_NUMPY "@Slicer_USE_NUMPY@")
set(Slicer_USE_PYTHON "@Slicer_USE_PYTHON@")
set(Slicer_USE_OPENTRACKER "@Slicer_USE_OPENTRACKER@")
# 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)
get_filename_component(Slicer_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# Slicer home (top of the tree)
set(Slicer_HOME "${Slicer_CONFIG_DIR}/../..")
get_filename_component(Slicer_HOME ${Slicer_HOME} ABSOLUTE)
# The CMake macros dir.
set(Slicer_CMAKE_DIR "${Slicer_HOME}/@Slicer_INSTALL_LIB_DIR@/CMake")
# Slicer Libs libraries. Those listed here should
# automatically pull in their dependencies.
set(Slicer_Libs_LIBRARIES "@Slicer_Libs_LIBRARIES@")
# Slicer Libs library directories.
set(Slicer_Libs_LIBRARY_DIRS
"${Slicer_HOME}/lib/FreeSurfer"
"${Slicer_HOME}/lib/IGT"
"${Slicer_HOME}/lib/ITKCommandIO"
"${Slicer_HOME}/lib/LoadableModule"
"${Slicer_HOME}/lib/MGHImageIO"
"${Slicer_HOME}/lib/MRML"
"${Slicer_HOME}/lib/MRMLIDImageIO"
"${Slicer_HOME}/lib/ModuleDescriptionParser"
"${Slicer_HOME}/lib/Qdec"
"${Slicer_HOME}/lib/RemoteIO"
"${Slicer_HOME}/lib/SlicerIO"
"${Slicer_HOME}/lib/tclap"
"${Slicer_HOME}/lib/vtkITK"
"${Slicer_HOME}/lib/vtkTeem"
"${Slicer_HOME}/lib/TclTk/lib"
"${Slicer_HOME}/lib/TclTk/lib/itcl@INCR_TCL_VERSION_DOT@"
"${Slicer_HOME}/lib/TclTk/lib/itk@INCR_TCL_VERSION_DOT@"
)
# Slicer Libs include file directories.
set(Slicer_Libs_INCLUDE_DIRS
"${Slicer_HOME}/include/FreeSurfer"
"${Slicer_HOME}/include/IGT"
"${Slicer_HOME}/include/ITKCommandIO"
"${Slicer_HOME}/include/LoadableModule"
"${Slicer_HOME}/include/MGHImageIO"
"${Slicer_HOME}/include/MRML"
"${Slicer_HOME}/include/MRMLIDImageIO"
"${Slicer_HOME}/include/ModuleDescriptionParser"
"${Slicer_HOME}/include/Qdec"
"${Slicer_HOME}/include/RemoteIO"
"${Slicer_HOME}/include/SlicerIO"
"${Slicer_HOME}/include/tclap"
"${Slicer_HOME}/include/vtkITK"
"${Slicer_HOME}/include/vtkTeem"
)
# Slicer Base libraries. Those listed here should
# automatically pull in their dependencies.
set(Slicer_Base_LIBRARIES "@Slicer_Base_LIBRARIES@")
# Slicer Base library directories.
set(Slicer_Base_LIBRARY_DIRS
"${Slicer_HOME}/@Slicer_INSTALL_LIB_DIR@"
)
# Slicer Base include file directories.
set(Slicer_Base_INCLUDE_DIRS
"${Slicer_HOME}/@Slicer_INSTALL_INCLUDE_DIR@"
"${Slicer_HOME}/@Slicer_INSTALL_INCLUDE_DIR@/SlicerBaseCLI"
"${Slicer_HOME}/@Slicer_INSTALL_INCLUDE_DIR@/SlicerBaseGUI"
"${Slicer_HOME}/@Slicer_INSTALL_INCLUDE_DIR@/SlicerBaseLogic"
)
# The location of the UseSlicer.cmake file.
set(Slicer_USE_FILE "${Slicer_CONFIG_DIR}/UseSlicer.cmake")
# The build settings file.
set(Slicer_BUILD_SETTINGS_FILE
"${Slicer_CONFIG_DIR}/SlicerBuildSettings.cmake")
# The Slicer relative install directories.
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@")
IF(Slicer_USE_QT AND Slicer_BUILD_QTLOADABLEMODULES)
set(Slicer_INSTALL_QTLOADABLEMODULES_BIN_DIR "@Slicer_INSTALL_QTLOADABLEMODULES_BIN_DIR@")
set(Slicer_INSTALL_QTLOADABLEMODULES_LIB_DIR "@Slicer_INSTALL_QTLOADABLEMODULES_LIB_DIR@")
set(Slicer_INSTALL_QTLOADABLEMODULES_INCLUDE_DIR "@Slicer_INSTALL_QTLOADABLEMODULES_INCLUDE_DIR@")
set(Slicer_INSTALL_QTLOADABLEMODULES_SHARE_DIR "@Slicer_INSTALL_QTLOADABLEMODULES_SHARE_DIR@")
ENDIF(Slicer_USE_QT AND Slicer_BUILD_QTLOADABLEMODULES)
# Components needed to build modules from outside a Slicer build tree or
# from outside a Slicer installation tree
set(TCLAP_DIR "${Slicer_HOME}/lib/tclap")
set(ModuleDescriptionParser_DIR "${Slicer_HOME}/lib/ModuleDescriptionParser")
set(GenerateCLP_DIR "${Slicer_HOME}/lib/GenerateCLP")
set(GenerateLM_DIR "${Slicer_HOME}/lib/GenerateLM")
set(ITK_DIR "${Slicer_HOME}/lib/InsightToolkit")
set(KWWidgets_DIR "${Slicer_HOME}/lib/KWWidgets")
set(LoadableModule_DIR "${Slicer_HOME}/lib/LoadableModule")
set(Teem_DIR "${Slicer_HOME}/lib/Teem-@Teem_VERSION_MAJOR@.@Teem_VERSION_MINOR@.@Teem_VERSION_PATCH@")
set(VTK_DIR "${Slicer_HOME}/lib/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@")
set(PYTHON_INCLUDE_PATH "@PYTHON_INCLUDE_PATH@")
get_filename_component(PYTHON_LIB_FILE "${PYTHON_LIBRARY}" NAME)
set(PYTHON_LIBRARIES "${Slicer_HOME}/lib/Python/lib/${PYTHON_LIB_FILE}")
get_filename_component(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_PATH}" NAME)
set(PYTHON_INCLUDE_PATH "${Slicer_HOME}/lib/Python/include/${PYTHON_INCLUDE_DIR}")