Slicer3Config.cmake.in 4.7 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
29
30
set(Slicer3_BUILD_SHARED "@BUILD_SHARED_LIBS@")

# Slicer3 options
31
set(Slicer_USE_BatchMake "@Slicer_USE_BatchMake@")
32
33
34
set(Slicer3_USE_MIDAS "@Slicer3_USE_MIDAS@")
set(Slicer3_USE_NUMPY "@Slicer3_USE_NUMPY@")
set(Slicer3_USE_PYTHON "@Slicer3_USE_PYTHON@")
35
set(Slicer3_USE_OPENCV "@Slicer3_USE_OPENCV@")
36
37
38
39
40

# Slicer home (top of the tree)
set(Slicer3_HOME "@Slicer3_HOME@")

# The CMake macros dir.
41
set(Slicer_CMAKE_DIR "@Slicer_CMAKE_DIR@")
42
43
44
45

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

47
48
49
50
51
52
53
# Slicer3 Libs library directories.
set(Slicer3_Libs_LIBRARY_DIRS "@Slicer3_Libs_LIBRARY_DIRS_CONFIG@")

# Slicer3 Libs include file directories.
set(Slicer3_Libs_INCLUDE_DIRS "@Slicer3_Libs_INCLUDE_DIRS_CONFIG@")

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

57
58
# Slicer3 Base library directories.
set(Slicer3_Base_LIBRARY_DIRS "@Slicer3_Base_LIBRARY_DIRS_CONFIG@")
59

60
61
# Slicer3 Base include file directories.
set(Slicer3_Base_INCLUDE_DIRS "@Slicer3_BINARY_DIR@" "@Slicer3_Base_INCLUDE_DIRS_CONFIG@")
62

63
# The location of the UseSlicer3.cmake file.
64
set(Slicer3_USE_FILE "@Slicer3_USE_FILE_CONFIG@")
65
66

# The build settings file.
67
68
69
set(Slicer3_BUILD_SETTINGS_FILE "@Slicer3_BUILD_SETTINGS_FILE@")

# The Slicer3 relative install directories.
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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@")
86

jcfr's avatar
jcfr committed
87
88
89
90
91
92
93
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)

94
95
# The Slicer3 install prefix (*not* defined in the install tree)
set(Slicer3_INSTALL_PREFIX  "@CMAKE_INSTALL_PREFIX@")
96
97
98

# Components needed to build modules from outside a Slicer3 build tree or 
# from outside a Slicer3 installation tree
99
100
set(TCLAP_DIR "@TCLAP_DIR_CONFIG@")
set(ModuleDescriptionParser_DIR "@ModuleDescriptionParser_DIR_CONFIG@")
101
102
103
104
set(GenerateCLP_DIR "@GenerateCLP_DIR_CONFIG@")
set(GenerateLM_DIR "@GenerateLM_DIR@")
set(ITK_DIR "@ITK_DIR_CONFIG@")
set(KWWidgets_DIR "@KWWidgets_DIR_CONFIG@")
105
set(LoadableModule_DIR "@LoadableModule_DIR_CONFIG@")
106
set(Teem_DIR "@Teem_DIR_CONFIG@")
107
set(VTK_DIR "@VTK_DIR_CONFIG@")
108
109
set(PYTHON_INCLUDE_PATH "@PYTHON_INCLUDE_PATH@")
set(PYTHON_LIBRARIES "@PYTHON_LIBRARIES@")
110
set(BatchMake_DIR "@BatchMake_DIR_CONFIG@")
111
112
set(OpenCV_DIR "@OpenCV_DIR_CONFIG@")