1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
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 ============================================================================*/
15 #include "cmStandardIncludes.h"
18 * \brief Helper class for providing CMake and CTest version information.
20 * Finds all version related information.
26 * Return major and minor version numbers for cmake.
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();
35 #define CMake_VERSION_ENCODE(major, minor, patch) \
36 ((major)*0x10000u + (minor)*0x100u + (patch))