]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Config.h.in
Code cleaning
[cpPlugins.git] / lib / cpPlugins / Config.h.in
1 #ifndef __CPPLUGINS__CONFIG__H__
2 #define __CPPLUGINS__CONFIG__H__
3
4 #include <cpPlugins/cpPlugins_Export.h>
5 #include <string>
6
7 /*
8  * =========================================================================
9  * Identify OS
10  * =========================================================================
11  */
12
13 #if defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )
14 #  define cpPlugins_SYS_WINDOWS
15 #  define cpPlugins_LIB_PREFIX ""
16 #  define cpPlugins_LIB_EXT "dll"
17 #  define cpPlugins_SEPARATOR ";"
18 #  define cpPlugins_PATH_SEPARATOR '/'
19 #  ifndef WIN32_LEAN_AND_MEAN
20 #    define WIN32_LEAN_AND_MEAN
21 #  endif
22 #  define NOMINMAX
23 #  include <windows.h>
24 #  include <tchar.h>
25 #elif defined( linux ) || defined( __linux )
26 #  define cpPlugins_SYS_LINUX
27 #  define cpPlugins_LIB_PREFIX "lib"
28 #  define cpPlugins_LIB_EXT "so"
29 #  define cpPlugins_SEPARATOR ":"
30 #  define cpPlugins_PATH_SEPARATOR '/'
31 #elif defined( __APPLE__ ) || defined( MACOSX ) || defined( macintosh ) || defined( Macintosh )
32 #  define cpPlugins_SYS_MACOS
33 #  define cpPlugins_LIB_PREFIX "lib"
34 #  define cpPlugins_LIB_EXT "dylib"
35 #  define cpPlugins_SEPARATOR ":"
36 #  define cpPlugins_PATH_SEPARATOR '/'
37 #elif defined( __FreeBSD__ ) || defined( __FreeBSD_kernel__ )
38 #  define cpPlugins_SYS_FREEBSD
39 #  define cpPlugins_LIB_PREFIX "lib"
40 #  define cpPlugins_LIB_EXT "so"
41 #  define cpPlugins_SEPARATOR ":"
42 #  define cpPlugins_PATH_SEPARATOR '/'
43 #else
44 #  error "This operating system is not supported by cpPlugins"
45 #endif
46
47 /*
48  * =========================================================================
49  * Some global values
50  * =========================================================================
51  */
52
53 #define cpPluginsObject
54 #define cpPlugins_PATHS "cpPlugins_PATHS"
55 #define cpPlugins_CONFIG "cpPlugins_Libraries.config"
56 #define cpPlugins_QT4_USED @QT4_FOUND@
57 #if cpPlugins_QT4_USED == 1
58 #  define cpPlugins_QT4
59 #else // cpPlugins_QT4_USED == 1
60 #  undef cpPlugins_QT4
61 #endif // cpPlugins_QT4_USED == 1
62
63 /*
64  * =========================================================================
65  * Version numbers and strings
66  * =========================================================================
67  */
68
69 #define cpPlugins_MAJ_VERSION   @prj_MAJ_VER@
70 #define cpPlugins_MIN_VERSION   @prj_MIN_VER@
71 #define cpPlugins_REL_VERSION   @prj_REL_VER@
72 #define cpPlugins_VERSION       "@prj_VER@"
73 #define cpPlugins_SHORT_VERSION "@prj_sVER@"
74
75 /*
76  * =========================================================================
77  * ITK related macros
78  * =========================================================================
79  */
80
81 #include <itkMacro.h>
82 #define ITK_MANUAL_INSTANTIATION
83 #ifndef ITK_DELETE_FUNCTION
84 #  define ITK_DELETE_FUNCTION
85 #endif // ITK_DELETE_FUNCTION
86 #ifndef ITK_OVERRIDE
87 #  define ITK_OVERRIDE
88 #endif // ITK_OVERRIDE
89
90 /*
91  * =========================================================================
92  * VTK related macros
93  * =========================================================================
94  */
95
96 #include <vtkConfigure.h>
97 #ifndef VTK_OVERRIDE
98 #  define VTK_OVERRIDE
99 #endif // VTK_OVERRIDE
100
101 #endif // __CPPLUGINS__CONFIG__H__
102
103 // eof - $RCSfile$