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
This commit is contained in:
Felix Schurk
2024-03-30 16:33:49 +02:00
committed by GitHub
parent dfaf3dfcb2
commit 8c2c629a4d

View File

@@ -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)