From 77f10f7c5eb8716c06eb7e0447c3fd8dbcb48d79 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 摹曛, 21 12月 2023 23:18:58 +0800
Subject: [PATCH] minor tweaks

---
 src/stylesupport/CMakeLists.txt |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/stylesupport/CMakeLists.txt b/src/stylesupport/CMakeLists.txt
index eea48a5..787fa8c 100644
--- a/src/stylesupport/CMakeLists.txt
+++ b/src/stylesupport/CMakeLists.txt
@@ -5,11 +5,36 @@
 
 set(_src
     qwkstylesupportglobal.h
+    styleagent.h
+    styleagent_p.h
+    styleagent.cpp
 )
+
+set(_links_private)
+
+if(WIN32)
+    list(APPEND _src
+        styleagent_win.cpp
+    )
+elseif(APPLE)
+    list(APPEND _links_private
+        "-framework Foundation"
+        "-framework Cocoa"
+        "-framework AppKit"
+    )
+    list(APPEND _src
+        styleagent_mac.cpp
+    )
+else()
+    list(APPEND _src
+        styleagent_linux.cpp
+    )
+endif()
 
 qwk_add_library(${PROJECT_NAME} AUTOGEN
     SOURCES ${_src}
     LINKS QWKCore
+    LINKS_PRIVATE ${_links_private}
     QT_LINKS Core Gui
     QT_INCLUDE_PRIVATE Core Gui
     PREFIX QWK_STYLESUPPORT

--
Gitblit v1.9.1