packaging: Initial packaging
[platform/upstream/cmake.git] / Source / cmVersion.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmVersion_h
13 #define cmVersion_h
14
15 #include "cmStandardIncludes.h"
16
17 /** \class cmVersion
18  * \brief Helper class for providing CMake and CTest version information.
19  *
20  * Finds all version related information.
21  */
22 class cmVersion
23 {
24 public:
25   /**
26    * Return major and minor version numbers for cmake.
27    */
28   static unsigned int GetMajorVersion();
29   static unsigned int GetMinorVersion();
30   static unsigned int GetPatchVersion();
31   static unsigned int GetTweakVersion();
32   static const char* GetCMakeVersion();
33 };
34
35 #define CMake_VERSION_ENCODE(major, minor, patch) \
36   ((major)*0x10000u + (minor)*0x100u + (patch))
37
38 #endif
39