CMake: Set project description and homepage URL
@@ -3,7 +3,30 @@ cmake_minimum_required (VERSION 3.0)
# allows us to override platform specific variables
set (CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_SOURCE_DIR}/cmake/Platform.cmake")
-project (Elektra)
+set (KDB_VERSION_MAJOR 0)
+set (KDB_VERSION_MINOR 8)
+set (KDB_VERSION_MICRO 25)
+set (KDB_VERSION "${KDB_VERSION_MAJOR}.${KDB_VERSION_MINOR}.${KDB_VERSION_MICRO}")
+
+set (ELEKTRA_DESCRIPTION
+ "Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database.")
+set (ELEKTRA_HOMEPAGE_URL "https://www.libelektra.org")
+
+if (CMAKE_VERSION VERSION_LESS 3.9)
+ project (Elektra VERSION "${KDB_VERSION}")
+elseif (CMAKE_VERSION VERSION_LESS 3.12)
+ project (Elektra
+ VERSION ${KDB_VERSION}
+ DESCRIPTION
+ ${ELEKTRA_DESCRIPTION})
+else (CMAKE_VERSION VERSION_LESS 3.12)
+ project (Elektra
+ VERSION ${KDB_VERSION}
+ DESCRIPTION
+ ${ELEKTRA_DESCRIPTION}
+ HOMEPAGE_URL
+ ${ELEKTRA_HOMEPAGE_URL})
+endif (CMAKE_VERSION VERSION_LESS 3.9)
# fix macOS RPATH issues
set (CMAKE_MACOSX_RPATH 1)
@@ -53,11 +76,6 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set (DOMAIN libelektra.org) # needed by doxygen
set (REVERSE_DOMAIN org.libelektra)
-set (KDB_VERSION_MAJOR 0)
-set (KDB_VERSION_MINOR 8)
-set (KDB_VERSION_MICRO 25)
-
-set (KDB_VERSION "${KDB_VERSION_MAJOR}.${KDB_VERSION_MINOR}.${KDB_VERSION_MICRO}")
message (STATUS "You are building Elektra ${KDB_VERSION}")
set (SO_VERSION 4)
