From d7f8811e84c21e65d7ffc823117e640d99825a3a Mon Sep 17 00:00:00 2001 From: arf20 Date: Thu, 15 Feb 2024 18:36:48 +0100 Subject: [PATCH] Fix project version and description --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 401a40d..f01dc3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,13 @@ add_compile_definitions(ARFMINESWEEPER_NUM_COMMIT="${WW1GAME_NUM_COMMIT}") message(STATUS "Git version ${WW1GAME_VERSION}-${WW1GAME_NUM_COMMIT}") -project(ww1game) +project( + ww1game + VERSION ${WW1GAME_VERSION} + DESCRIPTION "Generic 2D arcade WW1 game using SDL2" + HOMEPAGE_URL "http://github.org/arf20/arfminesweeper" + LANGUAGES CXX +) set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) @@ -34,6 +40,8 @@ add_executable(ww1game ${SRC}) target_link_libraries(ww1game PRIVATE Threads::Threads SDL2main SDL2 SDL2_ttf SDL2_image SDL2_mixer) +set_property(TARGET ww1game PROPERTY VERSION ${WW1GAME_VERSION}) + install(TARGETS ww1game RUNTIME DESTINATION game COMPONENT bin) install(DIRECTORY assets/ DESTINATION share/ww1game/assets COMPONENT data)