summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-15 11:15:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-17 11:12:10 +0900
commitc50d7ebfbf6e62afe0c5732702e7128a5b8eaab0 (patch)
treeae745d08031cd45e456f78df74361a501b9da993
parent17ab6b9acc6039e28b64cf0fd42d7748974dcc7a (diff)
downloadkommando-c50d7ebf.tar.gz
kommando-c50d7ebf.zip
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--CMakeL10n.txt6
-rw-r--r--CMakeLists.txt17
2 files changed, 13 insertions, 10 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index 85f0c76..2f3ae25 100644
--- a/CMakeL10n.txt
+++ b/CMakeL10n.txt
@@ -9,7 +9,11 @@
#
#################################################
-cmake_minimum_required( VERSION 3.5 )
+
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
##### include our cmake modules #################
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c700bf8..bb9f89f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,15 +7,19 @@
############################################
-cmake_minimum_required( VERSION 3.5 )
+##### set project version
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
+tde_set_project_version( )
-#### general package setup
+##### general package setup
project( kommando )
-#### include essential cmake modules
+##### include essential cmake modules
include( FindPkgConfig )
include( CheckFunctionExists )
@@ -26,16 +30,11 @@ include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
-#### include our cmake modules
+##### include our cmake modules
include( TDEMacros )
-##### set version number
-
-tde_set_project_version( )
-
-
##### setup install paths
include( TDESetupPaths )