cmVersion.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmVersion_h
  14. #define cmVersion_h
  15. #include "cmStandardIncludes.h"
  16. /** \class cmVersion
  17. * \brief Helper class for providing CMake and CTest version information.
  18. *
  19. * Finds all version related information.
  20. */
  21. class cmVersion
  22. {
  23. public:
  24. /**
  25. * Return major and minor version numbers for cmake.
  26. */
  27. static unsigned int GetMajorVersion() { return CMake_VERSION_MAJOR; }
  28. static unsigned int GetMinorVersion() { return CMake_VERSION_MINOR; }
  29. static unsigned int GetPatchVersion() { return CMake_VERSION_PATCH; }
  30. static std::string GetReleaseVersion();
  31. static std::string GetCMakeVersion();
  32. };
  33. #endif