-
Notifications
You must be signed in to change notification settings - Fork 2
/
mapConfigure.h.in
107 lines (94 loc) · 4.24 KB
/
mapConfigure.h.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
// -----------------------------------------------------------------------
// MatchPoint - DKFZ translational registration framework
//
// Copyright (c) German Cancer Research Center (DKFZ),
// Software development for Integrated Diagnostics and Therapy (SIDT).
// ALL RIGHTS RESERVED.
// See mapCopyright.txt or
// http://www.dkfz.de/en/sidt/projects/MatchPoint/copyright.html
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notices for more information.
//
//------------------------------------------------------------------------
/*!
// @file
// @version $Revision$ (last changed revision)
// @date $Date$ (last change date)
// @author $Author$ (last changed by)
// Subversion HeadURL: $HeadURL$
*/
//----------------------------------------------------------
// !!!EXPERIMENTAL CODE!!!
//
// This code may not be used for release.
// Add #define SIDT_ENFORCE_MATURE_CODE to any release module
// to ensure this policy.
//----------------------------------------------------------
#ifdef SIDT_ENFORCE_MATURE_CODE
#error “This code is marked as experimental code. It must not be used because this build enforces mature code.”
#endif
#ifndef SIDT_CONTAINS_EXPERIMENTAL_CODE
#define SIDT_CONTAINS_EXPERIMENTAL_CODE 1
#endif
#ifndef __MAPCONFIGURE_H
#define __MAPCONFIGURE_H
/*! @def MAP_BUILD_SHARED_LIBS
* This define indicates if MatchPoint will be build as static library (define MAP_STATIC) or as DLL (define MAP_DLL).
* By default MAP_BUILD_SHARED_LIBSis not defined.
*/
#cmakedefine MAP_BUILD_SHARED_LIBS
#ifdef MAP_BUILD_SHARED_LIBS
#define MAP_DLL
#else
#define MAP_STATIC
#endif
/*! @def MAP_LEAN_AND_MEAN
* This define controls if MatchPoint should be build without debug information code or
* any other code that isn't needed for correct functionality but for maintenance convinience.
* (e.g. the mapLogDebugMacro() won't generate any code)
* By default MAP_LEAN_AND_MEAN is not defined.
* @remark This definition should by configured via the advance options in CMake.
*/
#cmakedefine MAP_LEAN_AND_MEAN
/*! @def MAP_ENFORCE_MATURE_CODE
* This define controls if MatchPoint should force the whole build to be mature code.
* Mature code convention is part of the SIDT coding styles.
* Projects that use MatchPoint are able to ensure with SIDT_ENFORCE_MATURE_CODE
* that used code is guaranteed to be tested and reviewed regarding the strict
* SIDT coding styles.\n
* MAP_ENFORCE_MATURE_CODE can be used to ensure that strictness when prebuilding
* static or dynamic libraries.
* By default MAP_LEAN_AND_MEAN is not defined.
* @remark This definition should by configured via the advance options in CMake.
*/
#cmakedefine MAP_ENFORCE_MATURE_CODE
#ifdef MAP_ENFORCE_MATURE_CODE
#define SIDT_ENFORCE_MATURE_CODE
#endif
/*! @def MAP_DISABLE_ITK_IO_FACTORY_AUTO_REGISTER
* This define controls if MatchPoint should disable the auto
* register functionality of the itk io factory, when MatchPoint
* io reader and writer classes (e.g. mapImageReader.h) are used.
* This is needed in cases where MatchPoint is build "dynamic" and
* used in an application that also uses the ITK shared objects
* under Windows systems (e.g. MITK). Loading and unloading MatchPoint
* shared objects in such an application would lead to an corrupted
* itk factory stack, because its implementation is not fail safe
* in this scenario.
* By default MAP_LEAN_AND_MEAN is not defined.
* @remark This definition should by configured via the advance options in CMake.
*/
#cmakedefine MAP_DISABLE_ITK_IO_FACTORY_AUTO_REGISTER
#define MAP_VERSION_MAJOR @MatchPoint_VERSION_MAJOR@
#define MAP_VERSION_MINOR @MatchPoint_VERSION_MINOR@
#define MAP_VERSION_PATCH @MatchPoint_VERSION_PATCH@
#define MAP_VERSION_STRING "@MatchPoint_VERSION_STRING@"
#define MAP_FULL_VERSION_STRING "@MatchPoint_FULL_VERSION_STRING@"
#define MAP_SOURCE_VERSION "MatchPoint version " MAP_FULL_VERSION_STRING ", build date: " __DATE__ " " __TIME__
#define MAP_DLL_INTERFACE_VERSION_MAJOR @MatchPoint_DLL_INTERFACE_VERSION_MAJOR@
#define MAP_DLL_INTERFACE_VERSION_MINOR @MatchPoint_DLL_INTERFACE_VERSION_MINOR@
#define MAP_DLL_INTERFACE_VERSION_STRING "@MatchPoint_DLL_INTERFACE_VERSION_STRING@"
#include <cstddef>
#endif