]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Config.h.in
...
[cpPlugins.git] / lib / cpExtensions / Config.h.in
1 #ifndef __cpExtensions__Config__h__
2 #define __cpExtensions__Config__h__
3
4 #include <cpExtensions_Export.h>
5
6 /*
7  * =========================================================================
8  * Identify OS
9  * =========================================================================
10  */
11 #define cpExtensions_OS_@CMAKE_SYSTEM_NAME@
12 #ifdef cpExtensions_OS_Windows
13 #  define cpExtensions_LIB_PREFIX     ""
14 #  define cpExtensions_ENV_SEPARATOR  ";"
15 #  define cpExtensions_PATH_SEPARATOR '\\'
16 #  define cpExtensions_LIB_EXT        ".dll"
17 #else // cpExtensions_OS_Windows
18 #  define cpExtensions_LIB_PREFIX     "lib"
19 #  define cpExtensions_ENV_SEPARATOR  ":"
20 #  define cpExtensions_PATH_SEPARATOR '/'
21 #  ifdef cpExtensions_OS_Linux
22 #    define cpExtensions_LIB_EXT ".so"
23 #  else // cpExtensions_OS_Linux
24 #    define cpExtensions_LIB_EXT ".dylib"
25 #  endif // cpExtensions_OS_Linux
26 #endif // cpExtensions_OS_Windows
27
28 #ifdef cpExtensions_OS_Windows
29 #  ifndef WIN32_LEAN_AND_MEAN
30 #    define WIN32_LEAN_AND_MEAN
31 #  endif // WIN32_LEAN_AND_MEAN
32 #  define NOMINMAX
33 #  include <windows.h>
34 #  include <tchar.h>
35 #endif // cpExtensions_OS_Windows
36
37 /*
38  * =========================================================================
39  * Some global values
40  * =========================================================================
41  */
42
43 #define cpExtensions_QT4_USED @QT4_FOUND@
44 #if cpExtensions_QT4_USED == 1
45 #  define cpExtensions_QT4
46 #  define cpExtensions_QVTKWidget @cpPlugins_Qt4_VTKWidget@
47 #  include <@cpPlugins_Qt4_VTKWidget@.h>
48 #else // cpExtensions_QT4_USED == 1
49 #  undef cpExtensions_QT4
50 #endif // cpExtensions_QT4_USED == 1
51
52 /*
53  * =========================================================================
54  * Version numbers and strings
55  * =========================================================================
56  */
57
58 #define cpExtensions_MAJOR_VERSION   @prj_MAJOR_VERSION@
59 #define cpExtensions_MINOR_VERSION   @prj_MINOR_VERSION@
60 #define cpExtensions_RELEASE_VERSION @prj_RELEASE_VERSION@
61 #define cpExtensions_VERSION         "@prj_VERSION@"
62 #define cpExtensions_SHORT_VERSION   "@prj_SHORT_VERSION@"
63
64 /*
65  * =========================================================================
66  * Language related macros
67  * =========================================================================
68  */
69
70 #if __cplusplus >= 201103L
71 #  define cpExtensions_OVERRIDE override
72 #  define cpExtensions_DELETE_FUNCTION =delete
73 #  define cpExtensions_NULLPTR  nullptr
74 #  define cpExtensions_NOEXCEPT noexcept
75 #  define cpExtensions_HAS_CXX11_STATIC_ASSERT
76 #  define cpExtensions_HAS_CXX11_RVREF
77 #else
78 #  define cpExtensions_OVERRIDE
79 #  define cpExtensions_DELETE_FUNCTION
80 #  define cpExtensions_NULLPTR  NULL
81 #  define cpExtensions_NOEXCEPT throw()
82 #endif
83
84 #endif // __cpExtensions__Config__h__
85
86 // eof - $RCSfile$