aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gottfried <sebastiangottfried@web.de>2016-10-05 14:48:04 (GMT)
committerSebastian Gottfried <sebastiangottfried@web.de>2016-10-05 14:48:04 (GMT)
commit8cecca6d52387106a2fab707f5bc09993057ecd3 (patch)
tree58d5db5848195b912b7c3c4988d78b4d95eb6965
parent7ab9e93d17cb211b2cc25950784e7b0019062777 (diff)
Bind KTouch Version To KDE Applications Version
This removes the need to bump the version with each release since the KDE applications version is updated automatically.
-rw-r--r--CMakeLists.txt7
-rw-r--r--src/CMakeLists.txt2
2 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7517b66..6ca7f13 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,13 @@
project(ktouch)
+# KDE Application Version, managed by release script
+set (KDE_APPLICATIONS_VERSION_MAJOR "16")
+set (KDE_APPLICATIONS_VERSION_MINOR "11")
+set (KDE_APPLICATIONS_VERSION_MICRO "70")
+set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
+
+
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 1.0.0 REQUIRED NO_MODULE)
find_package(KF5DocTools)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4d61487..c9bcf55 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,4 +1,4 @@
-ecm_setup_version(2.3.0
+ecm_setup_version(${KDE_APPLICATIONS_VERSION}
VARIABLE_PREFIX KTOUCH
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KTouchConfigVersion.cmake"