pnet_version.h.in 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*********************************************************************
  2. * _ _ _
  3. * _ __ | |_ _ | | __ _ | |__ ___
  4. * | '__|| __|(_)| | / _` || '_ \ / __|
  5. * | | | |_ _ | || (_| || |_) |\__ \
  6. * |_| \__|(_)|_| \__,_||_.__/ |___/
  7. *
  8. * www.rt-labs.com
  9. * Copyright 2018 rt-labs AB, Sweden.
  10. *
  11. * This software is dual-licensed under GPLv3 and a commercial
  12. * license. See the file LICENSE.md distributed with this software for
  13. * full license information.
  14. ********************************************************************/
  15. #ifndef PNET_VERSION_H
  16. #define PNET_VERSION_H
  17. #cmakedefine PNET_GIT_REVISION "@PNET_GIT_REVISION@"
  18. #if !defined(PNET_VERSION_BUILD) && defined(PNET_GIT_REVISION)
  19. #define PNET_VERSION_BUILD PNET_GIT_REVISION
  20. #endif
  21. /* clang-format-off */
  22. #define PNET_VERSION_MAJOR @PNET_VERSION_MAJOR@
  23. #define PNET_VERSION_MINOR @PNET_VERSION_MINOR@
  24. #define PNET_VERSION_PATCH @PNET_VERSION_PATCH@
  25. #if defined(PNET_VERSION_BUILD)
  26. #define PNET_VERSION \
  27. "@PNET_VERSION_MAJOR@.@PNET_VERSION_MINOR@.@PNET_VERSION_PATCH@+" PNET_VERSION_BUILD
  28. #else
  29. #define PNET_VERSION \
  30. "@PNET_VERSION_MAJOR@.@PNET_VERSION_MINOR@.@PNET_VERSION_PATCH@"
  31. #endif
  32. /* clang-format-on */
  33. #endif /* PNET_VERSION_H */