From e3fbcfc085411475cb07da84308f03dbd3405e5e Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 28 Jan 2023 16:54:36 +0100 Subject: Commits will now trigger version-files regeneration during build --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index fe35ab7..79eae9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,12 +8,12 @@ find_package(EnTT 3 REQUIRED) find_package(nlohmann_json 3 REQUIRED) find_package(raylib 4 REQUIRED) include(AddResources) -include(GitRevParse) -git_rev_parse(KURATOR_VERSION) +include(AddVersionFile) add_subdirectory(campaign) add_subdirectory(contrib) add_subdirectory(kurator) add_subdirectory(sim) add_subdirectory(stats) add_subdirectory(universe) -configure_file(version.txt.conf "${CMAKE_CURRENT_BINARY_DIR}/version.txt" @ONLY) +add_version_file(version.txt version.txt.conf) +add_custom_target(version ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/version.txt") -- cgit v1.1