From ce742bec742cd61b449d0a4f50d1c26ecef1de63 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Mon, 9 Jun 2025 06:11:44 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkgui Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: https://github.com/linuxdeepin/dtkgui/pull/322 --- .reuse/dep5 | 2 +- .syncexclude | 1 + CMakeLists.txt | 4 +++- VERSION.in | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 VERSION.in diff --git a/.reuse/dep5 b/.reuse/dep5 index ac7495a..6a42f07 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -49,7 +49,7 @@ Copyright: None License: CC0-1.0 # Project file -Files: *.pro *.prf *.pri *.qrc *CMakeLists.txt *.cmake *.in +Files: *.pro *.prf *.pri *.qrc *CMakeLists.txt *.cmake *.in VERSION Copyright: None License: CC0-1.0 diff --git a/.syncexclude b/.syncexclude index 7b42c60..f45bbe9 100644 --- a/.syncexclude +++ b/.syncexclude @@ -9,3 +9,4 @@ # are always ignored linglong.yaml conanfile.py +VERSION diff --git a/CMakeLists.txt b/CMakeLists.txt index 23e90eb..3683d84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.25) -set(DTK_VERSION "5.6.11" CACHE STRING "define project version") +file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DTK_FILE_VERSION) +string(STRIP "${DTK_FILE_VERSION}" DTK_FILE_VERSION) +set(DTK_VERSION "${DTK_FILE_VERSION}" CACHE STRING "define project version") project(DtkGui VERSION ${DTK_VERSION} DESCRIPTION "DTK Gui module" diff --git a/VERSION.in b/VERSION.in new file mode 100644 index 0000000..14d2ff6 --- /dev/null +++ b/VERSION.in @@ -0,0 +1 @@ +@version@