From df53287060966d78ffccac78342fb5d0a028f835 Mon Sep 17 00:00:00 2001
From: sola.lu <sola.lu.greentest.com.cn>
Date: 周二, 10 6月 2025 19:03:07 +0800
Subject: [PATCH] 1.添加翻译,about,手册,login这几个按钮到标题栏。

---
 CMakeLists.txt |   43 +++++++++++++++++++++++++++++++++++++++----
 1 files changed, 39 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 001d00c..684aca5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,19 +1,50 @@
-cmake_minimum_required(VERSION 3.17)
+cmake_minimum_required(VERSION 3.19)
 
-project(QWindowKit VERSION 0.0.1.1 LANGUAGES CXX)
+project(QWindowKit
+    VERSION 1.4.1.0
+    LANGUAGES CXX
+    HOMEPAGE_URL "https://github.com/stdware/qwindowkit"
+    DESCRIPTION "Cross-platform window customization framework"
+)
 
 # ----------------------------------
 # Build Options
 # ----------------------------------
 option(QWINDOWKIT_BUILD_STATIC "Build static libraries" OFF)
 option(QWINDOWKIT_BUILD_WIDGETS "Build widgets module" ON)
-option(QWINDOWKIT_BUILD_QUICK "Build quick module" ON)
+option(QWINDOWKIT_BUILD_QUICK "Build quick module" OFF)
 option(QWINDOWKIT_BUILD_EXAMPLES "Build examples" OFF)
 option(QWINDOWKIT_BUILD_DOCUMENTATIONS "Build documentations" OFF)
 option(QWINDOWKIT_INSTALL "Install library" ON)
 
 option(QWINDOWKIT_ENABLE_QT_WINDOW_CONTEXT "Enable Qt Window Context anyway" OFF)
 option(QWINDOWKIT_ENABLE_WINDOWS_SYSTEM_BORDERS "Enable system borders on Windows" ON)
+option(QWINDOWKIT_ENABLE_STYLE_AGENT "Enable building style agent" ON)
+
+#[[
+
+Detailed Introcuction to Configure Options:
+
+`QWINDOWKIT_BUILD_DOCUMENTATIONS`
+  - If you have installed `Doxygen`, you can ENABLE this option so that the documentations
+    will also be built and installed.
+  - If not, you can read the comments in `qdoc` style in `cpp` files to get detailed usages
+    of the public APIs.
+
+`QWINDOWKIT_ENABLE_WINDOWS_SYSTEM_BORDERS`
+  - If you don't want the system borders on Windows 10/11, you can DISABLE this option.
+  - If so, the Windows 10 top border issue will disappear. However, part of the client edge
+    area will be occupied as the resizing margins.
+
+`QWINDOWKIT_ENABLE_QT_WINDOW_CONTEXT`
+  - If you want to use pure Qt emulated frameless implementation, you can ENABLE this option.
+  - If so, all system native features will be lost.
+
+`QWINDOWKIT_ENABLE_STYLE_AGENT`
+  - Select whether to exclude the style component by DISABLING this option according to your
+    requirements and your Qt version.
+
+#]]
 
 # ----------------------------------
 # CMake Settings
@@ -43,6 +74,10 @@
 set(QWINDOWKIT_VERSION ${PROJECT_VERSION})
 set(QWINDOWKIT_INSTALL_NAME ${PROJECT_NAME})
 
+string(TIMESTAMP _QACTIONKIT_CURRENT_YEAR "%Y")
+set(QACTIONKIT_COPYRIGHT "Copyright 2023-${_QACTIONKIT_CURRENT_YEAR} Stdware Collections")
+set(QACTIONKIT_DESCRIPTION ${PROJECT_DESCRIPTION})
+
 # ----------------------------------
 # Find basic dependencies
 # ----------------------------------
@@ -53,7 +88,7 @@
     set(_source_dir ${CMAKE_CURRENT_SOURCE_DIR}/qmsetup)
 
     # Import install function
-    include("${_source_dir}/cmake/modules/InstallPackage.cmake")
+    include("${_source_dir}/cmake/modules/private/InstallPackage.cmake")
 
     # Install package in place
     set(_package_path)

--
Gitblit v1.9.1