From 7d747f3bb139d2c01aee61b809d0929e8e908a2d Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周六, 23 12月 2023 17:41:00 +0800
Subject: [PATCH] update qmsetup

---
 CMakeLists.txt |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 11bfc38..f0d9873 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,10 +8,13 @@
 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_STYLE_SUPPORT "Build style support module" ON)
 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_STYLE_AGENT "Enable building style agent" ON)
+option(QWINDOWKIT_ENABLE_WINDOWS_SYSTEM_BORDER "Enable system border on Windows" ON)
 
 # ----------------------------------
 # CMake Settings
@@ -25,6 +28,9 @@
     if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
         set(CMAKE_DEBUG_POSTFIX "d")
     endif()
+elseif(MINGW)
+    set(CMAKE_STATIC_LIBRARY_PREFIX "")
+    set(CMAKE_SHARED_LIBRARY_PREFIX "")
 endif()
 
 if(QWINDOWKIT_INSTALL)
@@ -39,7 +45,7 @@
 set(QWINDOWKIT_INSTALL_NAME ${PROJECT_NAME})
 
 # ----------------------------------
-# Main Project
+# Find basic dependencies
 # ----------------------------------
 find_package(qmsetup QUIET)
 
@@ -65,6 +71,12 @@
     set(qmsetup_DIR ${_package_path} CACHE PATH "" FORCE)
 endif()
 
+qm_import(Filesystem)
+qm_init_directories()
+
+# ----------------------------------
+# Add source modules
+# ----------------------------------
 add_subdirectory(src)
 
 if(QWINDOWKIT_BUILD_EXAMPLES)

--
Gitblit v1.9.1