exportheader.cmake.in 911 B

1234567891011121314151617181920212223242526272829303132333435
  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. # define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEFINE_DEPRECATED@
  23. # define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEFINE_DEPRECATED@
  24. #endif
  25. #cmakedefine01 DEFINE_NO_DEPRECATED
  26. #if DEFINE_NO_DEPRECATED
  27. # define @NO_DEPRECATED_MACRO_NAME@
  28. #endif
  29. #endif