packaging: Initial packaging
[platform/upstream/cmake.git] / Source / cmVersion.cxx
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 #include "cmVersion.h"
13
14 #include "cmVersionMacros.h"
15
16 unsigned int cmVersion::GetMajorVersion() { return CMake_VERSION_MAJOR; }
17 unsigned int cmVersion::GetMinorVersion() { return CMake_VERSION_MINOR; }
18 unsigned int cmVersion::GetPatchVersion() { return CMake_VERSION_PATCH; }
19 unsigned int cmVersion::GetTweakVersion() { return CMake_VERSION_TWEAK; }
20
21 const char* cmVersion::GetCMakeVersion()
22 {
23   return CMake_VERSION;
24 }