X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FConfig.h.in;h=23c93da087c923e6983ecf934fecf3f27dd8dcff;hb=80ac2c55630c2a345a2102f0be86843147a398cc;hp=4468c5b4dd83737c099bb5a4bd83e6a7c2c8c115;hpb=e9143845b476fc8b86c1706fb140ebee770a650b;p=cpPlugins.git diff --git a/lib/cpExtensions/Config.h.in b/lib/cpExtensions/Config.h.in index 4468c5b..23c93da 100644 --- a/lib/cpExtensions/Config.h.in +++ b/lib/cpExtensions/Config.h.in @@ -1,18 +1,86 @@ -#ifndef __CPEXTENSIONS__CONFIG__H__ -#define __CPEXTENSIONS__CONFIG__H__ +#ifndef __cpExtensions__Config__h__ +#define __cpExtensions__Config__h__ + +#include + +/* + * ========================================================================= + * Identify OS + * ========================================================================= + */ +#define cpExtensions_OS_@CMAKE_SYSTEM_NAME@ +#ifdef cpExtensions_OS_Windows +# define cpExtensions_LIB_PREFIX "" +# define cpExtensions_ENV_SEPARATOR ";" +# define cpExtensions_PATH_SEPARATOR '\\' +# define cpExtensions_LIB_EXT ".dll" +#else // cpExtensions_OS_Windows +# define cpExtensions_LIB_PREFIX "lib" +# define cpExtensions_ENV_SEPARATOR ":" +# define cpExtensions_PATH_SEPARATOR '/' +# ifdef cpExtensions_OS_Linux +# define cpExtensions_LIB_EXT ".so" +# else // cpExtensions_OS_Linux +# define cpExtensions_LIB_EXT ".dylib" +# endif // cpExtensions_OS_Linux +#endif // cpExtensions_OS_Windows + +#ifdef cpExtensions_OS_Windows +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif // WIN32_LEAN_AND_MEAN +# define NOMINMAX +# include +# include +#endif // cpExtensions_OS_Windows + +/* + * ========================================================================= + * Some global values + * ========================================================================= + */ + +#define cpExtensions_QT4_USED @QT4_FOUND@ +#if cpExtensions_QT4_USED == 1 +# define cpExtensions_QT4 +# define cpExtensions_QVTKWidget @cpPlugins_Qt4_VTKWidget@ +# include <@cpPlugins_Qt4_VTKWidget@.h> +#else // cpExtensions_QT4_USED == 1 +# undef cpExtensions_QT4 +#endif // cpExtensions_QT4_USED == 1 + +/* + * ========================================================================= + * Version numbers and strings + * ========================================================================= + */ #define cpExtensions_MAJOR_VERSION @prj_MAJOR_VERSION@ #define cpExtensions_MINOR_VERSION @prj_MINOR_VERSION@ #define cpExtensions_RELEASE_VERSION @prj_RELEASE_VERSION@ #define cpExtensions_VERSION "@prj_VERSION@" +#define cpExtensions_SHORT_VERSION "@prj_SHORT_VERSION@" + +/* + * ========================================================================= + * Language related macros + * ========================================================================= + */ -#define cpExtensions_Interface_QT4_USED @QT4_FOUND@ -#if cpExtensions_Interface_QT4_USED == 1 -# define cpExtensions_Interface_QT4 -#else // cpExtensions_Interface_QT4_USED == 1 -# undef cpExtensions_Interface_QT4 -#endif // cpExtensions_Interface_QT4_USED == 1 +#if __cplusplus >= 201103L +# define cpExtensions_OVERRIDE override +# define cpExtensions_DELETE_FUNCTION =delete +# define cpExtensions_NULLPTR nullptr +# define cpExtensions_NOEXCEPT noexcept +# define cpExtensions_HAS_CXX11_STATIC_ASSERT +# define cpExtensions_HAS_CXX11_RVREF +#else +# define cpExtensions_OVERRIDE +# define cpExtensions_DELETE_FUNCTION +# define cpExtensions_NULLPTR NULL +# define cpExtensions_NOEXCEPT throw() +#endif -#endif // __CPEXTENSIONS__CONFIG__H__ +#endif // __cpExtensions__Config__h__ // eof - $RCSfile$