]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Config.h.in
45852444da47885d9dbde814fcee8851242005e2
[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
13 /*
14  * =========================================================================
15  * Some global values
16  * =========================================================================
17  */
18 #define cpExtensions_QT4_@QT4_FOUND@
19 #ifdef cpExtensions_QT4_TRUE
20 #  ifndef cpExtensions_QT4
21 #    define cpExtensions_QT4
22 #  endif // cpExtensions_QT4
23 #  define cpExtensions_QVTKWidget @cpPlugins_Qt4_VTKWidget@
24 #  include <@cpPlugins_Qt4_VTKWidget@.h>
25 #else // cpExtensions_QT4_TRUE
26 #  undef cpExtensions_QT4
27 #endif // cpExtensions_QT4_TRUE
28
29 /*
30  * =========================================================================
31  * Version numbers and strings
32  * =========================================================================
33  */
34
35 #define cpExtensions_MAJOR_VERSION   @prj_MAJOR_VERSION@
36 #define cpExtensions_MINOR_VERSION   @prj_MINOR_VERSION@
37 #define cpExtensions_RELEASE_VERSION @prj_RELEASE_VERSION@
38 #define cpExtensions_VERSION         "@prj_VERSION@"
39 #define cpExtensions_SHORT_VERSION   "@prj_SHORT_VERSION@"
40
41 /*
42  * =========================================================================
43  * Language related macros
44  * =========================================================================
45  */
46
47 #if __cplusplus >= 201103L
48 #  define cpExtensions_OVERRIDE override
49 #  define cpExtensions_DELETE_FUNCTION =delete
50 #  define cpExtensions_NULLPTR  nullptr
51 #  define cpExtensions_NOEXCEPT noexcept
52 #  define cpExtensions_HAS_CXX11_STATIC_ASSERT
53 #  define cpExtensions_HAS_CXX11_RVREF
54 #else
55 #  define cpExtensions_OVERRIDE
56 #  define cpExtensions_DELETE_FUNCTION
57 #  define cpExtensions_NULLPTR  NULL
58 #  define cpExtensions_NOEXCEPT throw()
59 #endif
60
61 // -------------------------------------------------------------------------
62 #ifdef cpExtensions_OS_Windows
63 #  define cpExtensions_SPRINTF( B, S, O ) sprintf_s( B, S, "%s", O );
64 #else // cpExtensions_OS_Windows
65 #  define cpExtensions_SPRINTF( B, S, O ) std::sprintf( B, "%s", O );
66 #endif // cpExtensions_OS_Windows
67
68 #endif // __cpExtensions__Config__h__
69
70 // eof - $RCSfile$