1 #ifndef __cpExtensions__Config__h__
2 #define __cpExtensions__Config__h__
4 #include <cpExtensions_Export.h>
7 * =========================================================================
9 * =========================================================================
11 #define cpExtensions_OS_@CMAKE_SYSTEM_NAME@
14 * =========================================================================
16 * =========================================================================
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
30 * =========================================================================
31 * Version numbers and strings
32 * =========================================================================
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@"
42 * =========================================================================
43 * Language related macros
44 * =========================================================================
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
55 # define cpExtensions_OVERRIDE
56 # define cpExtensions_DELETE_FUNCTION
57 # define cpExtensions_NULLPTR NULL
58 # define cpExtensions_NOEXCEPT throw()
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
68 #endif // __cpExtensions__Config__h__