Commit cb5c66d0 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: specific CMake export header generation

parent b0632fcd
This diff is collapsed.
......@@ -37,7 +37,7 @@ elseif(APPLE)
set( USE_COMPILER_HIDDEN_VISIBILITY OFF CACHE INTERNAL "" )
endif()
include(GenerateExportHeader)
include(GenerateExportHeaderCustom)
if(OTB_CPPCHECK_TEST)
include(${_OTBModuleMacros_DIR}/OTBModuleCPPCheckTest.cmake)
......
#ifndef @INCLUDE_GUARD_NAME@
#define @INCLUDE_GUARD_NAME@
#ifdef @STATIC_DEFINE@
# define @EXPORT_MACRO_NAME@
# define @NO_EXPORT_MACRO_NAME@
# define @EXPORT_TEMPLATE_MACRO_NAME@
# define @EXPORT_EXPLICIT_TEMPLATE_MACRO_NAME@
#else
# ifndef @EXPORT_MACRO_NAME@
# ifdef @EXPORT_IMPORT_CONDITION@
/* We are building this library */
# define @EXPORT_MACRO_NAME@ @DEFINE_EXPORT@
# else
/* We are using this library */
# define @EXPORT_MACRO_NAME@ @DEFINE_IMPORT@
# endif
# endif
# ifndef @EXPORT_TEMPLATE_MACRO_NAME@
/* We are building this library */
# define @EXPORT_TEMPLATE_MACRO_NAME@ @DEFINE_TEMPLATE_EXPORT@
# else
/* We are using this library */
# define @EXPORT_TEMPLATE_MACRO_NAME@ @DEFINE_TEMPLATE_IMPORT@
# endif
# ifndef @EXPORT_EXPLICIT_TEMPLATE_MACRO_NAME@
/* We are building this library */
# define @EXPORT_EXPLICIT_TEMPLATE_MACRO_NAME@ @DEFINE_EXPLICIT_TEMPLATE_EXPORT@
# else
/* We are using this library */
# define @EXPORT_EXPLICIT_TEMPLATE_MACRO_NAME@ @DEFINE_EXPLICIT_TEMPLATE_IMPORT@
# endif
# ifndef @NO_EXPORT_MACRO_NAME@
# define @NO_EXPORT_MACRO_NAME@ @DEFINE_NO_EXPORT@
# endif
#endif
#ifndef @DEPRECATED_MACRO_NAME@
# define @DEPRECATED_MACRO_NAME@ @DEFINE_DEPRECATED@
#endif
#ifndef @DEPRECATED_MACRO_NAME@_EXPORT
# define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
#endif
#ifndef @DEPRECATED_MACRO_NAME@_NO_EXPORT
# define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
#endif
#if @DEFINE_NO_DEPRECATED@ /* DEFINE_NO_DEPRECATED */
# ifndef @NO_DEPRECATED_MACRO_NAME@
# define @NO_DEPRECATED_MACRO_NAME@
# endif
#endif
@CUSTOM_CONTENT@
#endif /* @INCLUDE_GUARD_NAME@ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment