]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Config.h.in
Code cleaning
[cpPlugins.git] / lib / cpExtensions / Config.h.in
1 #ifndef __CPEXTENSIONS__CONFIG__H__
2 #define __CPEXTENSIONS__CONFIG__H__
3
4 #include <cpExtensions/cpExtensions_Export.h>
5
6 /*
7  * =========================================================================
8  * Identify OS
9  * =========================================================================
10  */
11
12 #if defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )
13 #  define cpExtensions_SYS_WINDOWS
14 #  define cpExtensions_PATH_SEPARATOR '\\'
15 #  ifndef WIN32_LEAN_AND_MEAN
16 #    define WIN32_LEAN_AND_MEAN
17 #  endif
18 #  define NOMINMAX
19 #  include <windows.h>
20 #  include <tchar.h>
21 #elif defined( linux ) || defined( __linux )
22 #  define cpExtensions_SYS_LINUX
23 #  define cpExtensions_PATH_SEPARATOR '/'
24 #elif defined( __APPLE__ ) || defined( MACOSX ) || defined( macintosh ) || defined( Macintosh )
25 #  define cpExtensions_SYS_MACOS
26 #  define cpExtensions_PATH_SEPARATOR '/'
27 #elif defined( __FreeBSD__ ) || defined( __FreeBSD_kernel__ )
28 #  define cpExtensions_SYS_FREEBSD
29 #  define cpExtensions_PATH_SEPARATOR '/'
30 #else
31 #  error "This operating system is not supported by this project"
32 #endif
33
34 /*
35  * =========================================================================
36  * Some global values
37  * =========================================================================
38  */
39
40 #define cpExtensions_QT4_USED @QT4_FOUND@
41 #if cpExtensions_QT4_USED == 1
42 #  define cpExtensions_QT4
43 #else // cpExtensions_QT4_USED == 1
44 #  undef cpExtensions_QT4
45 #endif // cpExtensions_QT4_USED == 1
46
47 /*
48  * =========================================================================
49  * Version numbers and strings
50  * =========================================================================
51  */
52
53 #define cpExtensions_MAJOR_VERSION   @prj_MAJ_VER@
54 #define cpExtensions_MINOR_VERSION   @prj_MIN_VER@
55 #define cpExtensions_RELEASE_VERSION @prj_REL_VER@
56 #define cpExtensions_VERSION         "@prj_VERSION@"
57 #define cpExtensions_SHORT_VERSION   "@prj_SHORT_VERSION@"
58
59 /*
60  * =========================================================================
61  * ITK related macros
62  * =========================================================================
63  */
64
65 #include <itkMacro.h>
66 #define ITK_MANUAL_INSTANTIATION
67 #ifndef ITK_DELETE_FUNCTION
68 #  define ITK_DELETE_FUNCTION
69 #endif // ITK_DELETE_FUNCTION
70 #ifndef ITK_OVERRIDE
71 #  define ITK_OVERRIDE
72 #endif // ITK_OVERRIDE
73
74 /*
75  * =========================================================================
76  * VTK related macros
77  * =========================================================================
78  */
79
80 #include <vtkConfigure.h>
81 #ifndef VTK_OVERRIDE
82 #  define VTK_OVERRIDE
83 #endif // VTK_OVERRIDE
84
85 #endif // __CPEXTENSIONS__CONFIG__H__
86
87 // eof - $RCSfile$