From 8c2c629a4d284a9d2b88f78c79eaf609bdef39ea Mon Sep 17 00:00:00 2001 From: Felix Schurk <75752337+felixschurk@users.noreply.github.com> Date: Sat, 30 Mar 2024 16:33:49 +0200 Subject: [PATCH] use CMake project settings (#3315) This adds a description as well as the homepage to the CMake settings. Further it would also now use the numbering cheme as supposed to in CMake, this way other people could now pin a specific version if taskwarrior is included in another project. Documentation from CMake is https://cmake.org/cmake/help/latest/command/project.html --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 572f62d99..a077c869c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,10 @@ cmake_minimum_required (VERSION 3.22) + +project (task + VERSION 3.0.0 + DESCRIPTION "Taskwarrior - a command-line TODO list manager" + HOMEPAGE_URL https://taskwarrior.org/) + set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") include (FetchContent) @@ -7,11 +13,8 @@ include (CheckStructHasMember) set (HAVE_CMAKE true) -project (task) include (CXXSniffer) -set (PROJECT_VERSION "3.0.0") - OPTION (ENABLE_WASM "Enable 'wasm' support" OFF) if (ENABLE_WASM)