ENH: check in almost building VMS stuff with VMSBuild directory since the bootstrap...
[cmake.git] / Source / cmVersion.h
blobc43814aba7c6f8c6538d759e0beb3b9f18349ed3
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmVersion.h,v $
5 Language: C++
6 Date: $Date: 2009-03-05 20:17:06 $
7 Version: $Revision: 1.3 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmVersion_h
18 #define cmVersion_h
20 #include "cmStandardIncludes.h"
22 /** \class cmVersion
23 * \brief Helper class for providing CMake and CTest version information.
25 * Finds all version related information.
27 class cmVersion
29 public:
30 /**
31 * Return major and minor version numbers for cmake.
33 static unsigned int GetMajorVersion();
34 static unsigned int GetMinorVersion();
35 static unsigned int GetPatchVersion();
36 static const char* GetCMakeVersion();
39 #define CMake_VERSION_ENCODE(major, minor, patch) \
40 ((major)*0x10000u + (minor)*0x100u + (patch))
42 #endif