1
/*=========================================================================
3
Program: CMake - Cross-Platform Makefile Generator
4
Module: $RCSfile: cmVersion.h,v $
6
Date: $Date: 2005-06-17 13:49:06 $
7
Version: $Revision: 1.2 $
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
=========================================================================*/
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
============================================================================*/
17
12
#ifndef cmVersion_h
18
13
#define cmVersion_h
31
26
* Return major and minor version numbers for cmake.
33
static unsigned int GetMajorVersion() { return CMake_VERSION_MAJOR; }
34
static unsigned int GetMinorVersion() { return CMake_VERSION_MINOR; }
35
static unsigned int GetPatchVersion() { return CMake_VERSION_PATCH; }
36
static std::string GetReleaseVersion();
37
static std::string GetCMakeVersion();
28
static unsigned int GetMajorVersion();
29
static unsigned int GetMinorVersion();
30
static unsigned int GetPatchVersion();
31
static const char* GetCMakeVersion();
34
#define CMake_VERSION_ENCODE(major, minor, patch) \
35
((major)*0x10000u + (minor)*0x100u + (patch))