From cb4c5cd75f2943ecd2f599862183baa2f3d0964a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 15 Mar 2024 10:56:54 +0900 Subject: Use centralized cmake version Signed-off-by: Michele Calgaro --- CMakeLists.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index dfc902a..5245a6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,15 +10,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( smb4k ) -#### include essential cmake modules +##### include essential cmake modules include( FindPkgConfig ) include( CheckSymbolExists ) @@ -29,16 +33,11 @@ include( CheckCXXSourceCompiles ) include( CheckTypeSize ) -#### include our cmake modules +##### include our cmake modules include( TDEMacros ) -##### set version number - -tde_set_project_version( ) - - ##### setup install paths include( TDESetupPaths ) -- cgit v1.2.1