summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-03-15 11:24:54 +0900
committerMichele Calgaro <[email protected]>2024-03-16 11:54:22 +0900
commit01dafd82ae262a374af0d7d5709aad6b61abed89 (patch)
treea5b462a3c6c54d985df0d323d220bc4c99ee9c3b
parent115223b1c4e252eb1dc2e710784b958b4b210a46 (diff)
downloadlibksquirrel-01dafd82ae262a374af0d7d5709aad6b61abed89.tar.gz
libksquirrel-01dafd82ae262a374af0d7d5709aad6b61abed89.zip
Use centralized cmake version
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit a4981cc4bfcb67d8876e067a890acadbe8729096)
-rw-r--r--CMakeLists.txt17
1 files changed, 8 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 145ef8f..d83fa53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,10 +10,14 @@
############################################
-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( libksquirrel )
@@ -24,7 +28,7 @@ set(LIBKSQUIRREL_VERSION_STRING
"${LIBKSQUIRREL_VERSION_MAJOR}.${LIBKSQUIRREL_VERSION_MINOR}.${LIBKSQUIRREL_VERSION_PATCH}")
-#### include essential cmake modules
+##### include essential cmake modules
include( FindPkgConfig )
include( CheckFunctionExists )
@@ -35,16 +39,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 )