diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-15 11:23:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-15 11:23:29 +0900 |
commit | b2e6bdba6c685fd45d6a4417926a48e5ef9bc19f (patch) | |
tree | ec2c1381e43e8ca52a435d51514354efb5c0631d | |
parent | 7c53a87adc27550ff875d6c17fccdbfbe2942ee1 (diff) | |
download | polkit-tqt-b2e6bdba6c685fd45d6a4417926a48e5ef9bc19f.tar.gz polkit-tqt-b2e6bdba6c685fd45d6a4417926a48e5ef9bc19f.zip |
Use centralized cmake version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 13 insertions, 8 deletions
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 ) |