diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-05-12 21:25:36 +0200 |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-05-12 21:28:58 +0200 |
commit | 653895414dca71dde86dd78f493b5b646bb36ab7 (patch) | |
tree | d98c7c6dd574ff78986f060f41785d8c4ffb73f2 /modules/ECMSetVersionVariables.cmake | |
parent | 0f46b993438abce7a2b90c7ba720427cbe827e8d (diff) | |
download | extra-cmake-modules-653895414dca71dde86dd78f493b5b646bb36ab7.tar.gz extra-cmake-modules-653895414dca71dde86dd78f493b5b646bb36ab7.tar.bz2 |
rework of extra-cmake-modules
-rename the cmake package from extra-cmake-modules to ECM
-change variable names and docs accordingly
-move setting of Qt-related defines from ECMQtFrameworks.cmake to KDECompilerSettings.cmake
-remove ECMSetVersionVariables.cmake, we'll do it some other way
-rename ECMConfig.cmake.in to ECMQtFrameworkConfig.cmake.in, since this is where it is used, and it would have the same name as ECMConfig.cmake.in which is for extra-cmake-modules itself
Alex
Diffstat (limited to 'modules/ECMSetVersionVariables.cmake')
-rw-r--r-- | modules/ECMSetVersionVariables.cmake | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/modules/ECMSetVersionVariables.cmake b/modules/ECMSetVersionVariables.cmake deleted file mode 100644 index 561358a8..00000000 --- a/modules/ECMSetVersionVariables.cmake +++ /dev/null @@ -1,42 +0,0 @@ -# - Convenience macro for setting version variables. -# -# ECM_SET_VERSION_VARIABLES(<prefix> <major> <minor> <patch>) -# -# This macro sets the following variables: -# <prefix>_VERSION_MAJOR to <major> -# <prefix>_VERSION_MINOR to <minor> -# <prefix>_VERSION_PATCH to <patch> -# <prefix>_SOVERSION to <major> -# <prefix>_VERSION_STRING to "<major>.<minor>.<patch>" -# -# It is basically a shortcut, so instead of -# -# set(FOO_MAJOR_VERSION 0) -# set(FOO_MINOR_VERSION 0) -# set(FOO_PATCH_VERSION 1) -# set(FOO_SOVERSION ${FOO_SOVERSION} ) -# set(FOO_VERSION ${FOO_MAJOR_VERSION}.${FOO_MINOR_VERSION}.${FOO_PATCH_VERSION}) -# -# you can simply write -# -# ecm_set_version_variables(FOO 0 0 1) -# -# You can do with these variables whatever you want, there is no other automagic or -# anything that depends on them. - -# Copyright 2011 Alexander Neundorf <neundorf@kde.org> -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. - -macro(ecm_set_version_variables _prefix _major _minor _patch) - set(${_prefix}_VERSION_MAJOR ${_major}) - set(${_prefix}_VERSION_MINOR ${_minor}) - set(${_prefix}_VERSION_PATCH ${_patch}) - set(${_prefix}_SOVERSION ${_major}) - set(${_prefix}_VERSION_STRING "${${_prefix}_VERSION_MAJOR}.${${_prefix}_VERSION_MINOR}.${${_prefix}_VERSION_PATCH}") -endmacro() |