Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmVersion.h
blobfc69a7c305d0090d59c2cf41f42a4a3a0ae95afc
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmVersion.h,v $
5 Language: C++
6 <<<<<<< cmVersion.h
7 Date: $Date: 2005/06/17 13:49:06 $
8 Version: $Revision: 1.2 $
9 =======
10 Date: $Date: 2009-03-05 20:17:06 $
11 Version: $Revision: 1.3 $
12 >>>>>>> 1.3
14 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
15 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17 This software is distributed WITHOUT ANY WARRANTY; without even
18 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19 PURPOSE. See the above copyright notices for more information.
21 =========================================================================*/
22 #ifndef cmVersion_h
23 #define cmVersion_h
25 #include "cmStandardIncludes.h"
27 /** \class cmVersion
28 * \brief Helper class for providing CMake and CTest version information.
30 * Finds all version related information.
32 class cmVersion
34 public:
35 /**
36 * Return major and minor version numbers for cmake.
38 static unsigned int GetMajorVersion();
39 static unsigned int GetMinorVersion();
40 static unsigned int GetPatchVersion();
41 static const char* GetCMakeVersion();
44 #define CMake_VERSION_ENCODE(major, minor, patch) \
45 ((major)*0x10000u + (minor)*0x100u + (patch))
47 #endif