From b2e6bdba6c685fd45d6a4417926a48e5ef9bc19f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 15 Mar 2024 11:23:29 +0900 Subject: Use centralized cmake version Signed-off-by: Michele Calgaro --- CMakeLists.txt | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index bcfdcf32a..5b40d99c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,9 +9,21 @@ # ################################################# -## Polkit TQt Library + +##### set project version ######################## + +include( TDEVersion ) +cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) +tde_set_project_version( ) + + +##### general package setup ##################### + project("polkit-tqt") + +##### include essential cmake modules ########### + set(POLKIT-TQT_VERSION_MAJOR 0) set(POLKIT-TQT_VERSION_MINOR 103) set(POLKIT-TQT_VERSION_PATCH 0) @@ -21,8 +33,6 @@ set(POLKIT-TQT_VERSION_STRING ##### cmake setup ############################### -cmake_minimum_required( VERSION 3.5 ) - include( FindPkgConfig ) include( CheckCXXSourceCompiles ) include( CheckSymbolExists ) @@ -31,11 +41,6 @@ include( TDEMacros ) enable_testing( ) -##### set version number ######################## - -tde_set_project_version( ) - - ##### optional stuff option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) -- cgit v1.2.1