-
Notifications
You must be signed in to change notification settings - Fork 0
/
MITKConfig.cmake.in
143 lines (120 loc) · 4.96 KB
/
MITKConfig.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
# Update the CMake module path
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "@MITK_SOURCE_DIR@/CMake")
SET(CppMicroServices_SOURCE_DIR @MITK_SOURCE_DIR@/Core/Code/CppMicroServices)
# Include MITK macros
include(MacroParseArguments)
include(@CppMicroServices_SOURCE_DIR@/CMake/usFunctionGenerateModuleInit.cmake)
include(mitkFunctionCheckMitkCompatibility)
include(mitkFunctionOrganizeSources)
include(mitkFunctionCreateWindowsBatchScript)
include(mitkFunctionInstallProvisioningFiles)
include(mitkMacroCreateModuleConf)
include(mitkMacroCreateModule)
include(mitkMacroCheckModule)
include(mitkMacroCreateModuleTests)
include(mitkFunctionAddCustomModuleTest)
include(mitkMacroUseModule)
include(mitkMacroMultiplexPicType)
include(mitkMacroInstall)
include(mitkMacroInstallHelperApp)
include(mitkMacroInstallTargets)
include(mitkMacroGenerateToolsLibrary)
include(mitkMacroCreateCTKPlugin)
# The MITK version number
SET(MITK_VERSION_MAJOR "@MITK_VERSION_MAJOR@")
SET(MITK_VERSION_MINOR "@MITK_VERSION_MINOR@")
SET(MITK_VERSION_PATCH "@MITK_VERSION_PATCH@")
SET(MITK_VERSION_STRING "@MITK_VERSION_STRING@")
# Internal version numbers, used for approximate compatibility checks
# of a MITK development version (non-release).
SET(MITK_VERSION_PLUGIN_SYSTEM 2) # dropped legacy BlueBerry plug-in CMake support
# MITK specific variables
SET(MITK_SOURCE_DIR "@MITK_SOURCE_DIR@")
SET(MITK_BINARY_DIR "@MITK_BINARY_DIR@")
SET(UTILITIES_DIR "@UTILITIES_DIR@")
SET(REGISTER_QFUNCTIONALITY_CPP_IN "@REGISTER_QFUNCTIONALITY_CPP_IN@")
SET(MITK_MODULES_PACKAGE_DEPENDS_DIR "@MITK_MODULES_PACKAGE_DEPENDS_DIR@")
SET(MODULES_PACKAGE_DEPENDS_DIRS "@MODULES_PACKAGE_DEPENDS_DIRS@")
SET(MITK_DOXYGEN_TAGFILE_NAME "@MITK_DOXYGEN_TAGFILE_NAME@")
IF(MODULES_CONF_DIRS)
LIST(APPEND MODULES_CONF_DIRS "@MODULES_CONF_DIRS@")
LIST(REMOVE_DUPLICATES MODULES_CONF_DIRS)
ELSE()
SET(MODULES_CONF_DIRS "@MODULES_CONF_DIRS@")
ENDIF()
SET(MODULES_CONF_DIRNAME "@MODULES_CONF_DIRNAME@")
FOREACH(_module @MITK_MODULE_NAMES@)
SET(${_module}_CONFIG_FILE "@MITK_BINARY_DIR@/@MODULES_CONF_DIRNAME@/${_module}Config.cmake")
ENDFOREACH()
# Include directory variables
SET(MITK_INCLUDE_DIRS "@MITK_INCLUDE_DIRS@")
SET(QMITK_INCLUDE_DIRS "@QMITK_INCLUDE_DIRS@")
SET(ANN_INCLUDE_DIR "@ANN_INCLUDE_DIR@")
SET(IPSEGMENTATION_INCLUDE_DIR "@IPSEGMENTATION_INCLUDE_DIR@")
SET(VECMATH_INCLUDE_DIR "@VECMATH_INCLUDE_DIR@")
SET(IPFUNC_INCLUDE_DIR "@IPFUNC_INCLUDE_DIR@")
SET(MITK_IGT_INCLUDE_DIRS "@MITK_IGT_INCLUDE_DIRS@")
# Library variables
SET(MITK_LIBRARIES "@MITK_LIBRARIES@")
SET(QMITK_LIBRARIES "@QMITK_LIBRARIES@")
# Link directory variables
SET(MITK_LINK_DIRECTORIES "@MITK_LINK_DIRECTORIES@")
SET(QMITK_LINK_DIRECTORIES "@QMITK_LINK_DIRECTORIES@")
SET(MITK_LIBRARY_DIRS "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@" "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@/plugins")
SET(MITK_VTK_LIBRARY_DIRS "@MITK_VTK_LIBRARY_DIRS@")
SET(MITK_ITK_LIBRARY_DIRS "@MITK_ITK_LIBRARY_DIRS@")
# External projects
SET(ITK_DIR "@ITK_DIR@")
SET(VTK_DIR "@VTK_DIR@")
SET(DCMTK_DIR "@DCMTK_DIR@")
SET(GDCM_DIR "@GDCM_DIR@")
SET(BOOST_ROOT "@BOOST_ROOT@")
SET(OpenCV_DIR "@OpenCV_DIR@")
SET(MITK_QMAKE_EXECUTABLE "@QT_QMAKE_EXECUTABLE@")
SET(MITK_DATA_DIR "@MITK_DATA_DIR@")
SET(MITK_RUNTIME_PATH "@MITK_RUNTIME_PATH@")
# MITK use variables
SET(MITK_USE_QT @MITK_USE_QT@)
SET(MITK_USE_BLUEBERRY @MITK_USE_BLUEBERRY@)
SET(MITK_USE_SYSTEM_Boost @MITK_USE_SYSTEM_Boost@)
SET(MITK_USE_Boost @MITK_USE_Boost@)
SET(MITK_USE_Boost_LIBRARIES @MITK_USE_Boost_LIBRARIES@)
SET(MITK_USE_CTK @MITK_USE_CTK@)
SET(MITK_USE_DCMTK @MITK_USE_DCMTK@)
SET(MITK_USE_OpenCV @MITK_USE_OpenCV@)
SET(MITK_USE_Python @MITK_USE_Python@)
# There is no PocoConfig.cmake, so we set Poco specific CMake variables
# here. This way the call to FIND_PACKAGE(Poco) in BlueBerryConfig.cmake
# finds the Poco distribution supplied by MITK
SET(Poco_INCLUDE_DIR "@MITK_SOURCE_DIR@/Utilities/Poco")
SET(Poco_LIBRARY_DIR "@MITK_BINARY_DIR@/bin")
IF(MITK_USE_IGT)
#INCLUDE(${MITK_DIR}/mitkIGTConfig.cmake)
ENDIF()
IF(NOT MITK_EXPORTS_FILE_INCLUDED)
IF(EXISTS "@MITK_EXPORTS_FILE@")
SET(MITK_EXPORTS_FILE_INCLUDED 1)
INCLUDE("@MITK_EXPORTS_FILE@")
ENDIF(EXISTS "@MITK_EXPORTS_FILE@")
ENDIF()
# BlueBerry support
IF(MITK_USE_BLUEBERRY)
SET(BlueBerry_DIR "@MITK_BINARY_DIR@/BlueBerry")
# Don't include the BlueBerry exports file, since the targets are
# also exported in the MITK exports file
SET(BB_PLUGIN_EXPORTS_FILE_INCLUDED 1)
FIND_PACKAGE(BlueBerry)
IF(NOT BlueBerry_FOUND)
MESSAGE(SEND_ERROR "MITK does not seem to be configured with BlueBerry support. Set MITK_USE_BLUEBERRY to ON in your MITK build configuration.")
ENDIF(NOT BlueBerry_FOUND)
SET(MITK_PLUGIN_USE_FILE @MITK_PLUGIN_USE_FILE@)
IF(MITK_PLUGIN_USE_FILE)
IF(EXISTS ${MITK_PLUGIN_USE_FILE})
INCLUDE(${MITK_PLUGIN_USE_FILE})
ENDIF()
ENDIF()
SET(MITK_PLUGIN_PROVISIONING_FILE "@MITK_EXTAPP_PROVISIONING_FILE@")
SET(MITK_PROVISIONING_FILES
"${BLUEBERRY_PLUGIN_PROVISIONING_FILE}"
"${MITK_PLUGIN_PROVISIONING_FILE}")
ENDIF(MITK_USE_BLUEBERRY)