1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmVersion.h,v $
7 Date: $Date: 2005/06/17 13:49:06 $
8 Version: $Revision: 1.2 $
10 Date: $Date: 2009-03-05 20:17:06 $
11 Version: $Revision: 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 =========================================================================*/
25 #include "cmStandardIncludes.h"
28 * \brief Helper class for providing CMake and CTest version information.
30 * Finds all version related information.
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))