exportheader.cmake.in 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef @INCLUDE_GUARD_NAME@
  2. #define @INCLUDE_GUARD_NAME@
  3. #ifdef @STATIC_DEFINE@
  4. # define @EXPORT_MACRO_NAME@
  5. # define @NO_EXPORT_MACRO_NAME@
  6. #else
  7. # ifndef @EXPORT_MACRO_NAME@
  8. # ifdef @EXPORT_IMPORT_CONDITION@
  9. /* We are building this library */
  10. # define @EXPORT_MACRO_NAME@ @DEFINE_EXPORT@
  11. # else
  12. /* We are using this library */
  13. # define @EXPORT_MACRO_NAME@ @DEFINE_IMPORT@
  14. # endif
  15. # endif
  16. # ifndef @NO_EXPORT_MACRO_NAME@
  17. # define @NO_EXPORT_MACRO_NAME@ @DEFINE_NO_EXPORT@
  18. # endif
  19. #endif
  20. #ifndef @DEPRECATED_MACRO_NAME@
  21. # define @DEPRECATED_MACRO_NAME@ @DEFINE_DEPRECATED@
  22. #endif
  23. #ifndef @DEPRECATED_MACRO_NAME@_EXPORT
  24. # define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
  25. #endif
  26. #ifndef @DEPRECATED_MACRO_NAME@_NO_EXPORT
  27. # define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
  28. #endif
  29. #if @DEFINE_NO_DEPRECATED@ /* DEFINE_NO_DEPRECATED */
  30. # ifndef @NO_DEPRECATED_MACRO_NAME@
  31. # define @NO_DEPRECATED_MACRO_NAME@
  32. # endif
  33. #endif
  34. @CUSTOM_CONTENT@
  35. #endif /* @INCLUDE_GUARD_NAME@ */