From 2df00b7e7bf5fd9c2f171449f71d1b101480f0db Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周一, 11 12月 2023 20:24:24 +0800
Subject: [PATCH] finish border paint code

---
 src/core/CMakeLists.txt |   35 +++++++++++++++++++++++------------
 1 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 03fa2dd..837baa0 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -5,27 +5,34 @@
 
 set(_src
     qwkcoreglobal.h
-    corewindowagent.h
-    corewindowagent_p.h
-    corewindowagent.cpp
-    windowitemdelegate.h
-    handler/abstractwindowcontext_p.h
-    handler/abstractwindowcontext.cpp
+    qwkglobal.h
+    qwkglobal_p.h
+    windowagentbase.h
+    windowagentbase_p.h
+    windowagentbase.cpp
+    windowitemdelegate_p.h
+    windowitemdelegate.cpp
+    kernel/nativeeventfilter.h
+    kernel/nativeeventfilter.cpp
+    contexts/abstractwindowcontext_p.h
+    contexts/abstractwindowcontext.cpp
 )
 
 if(WIN32)
     list(APPEND _src
         qwindowkit_windows.h
-        handler/win32windowcontext_p.h
-        handler/win32windowcontext.cpp
+        qwindowkit_windows.cpp
+        contexts/win32windowcontext_p.h
+        contexts/win32windowcontext.cpp
     )
 else()
     list(APPEND _src
-        handler/qtwindowcontext_p.h
-        handler/qtwindowcontext.cpp
+        contexts/qtwindowcontext_p.h
+        contexts/qtwindowcontext.cpp
     )
+
     if(APPLE)
-        # add files
+    # add files
     else()
         list(APPEND _src
             qwindowkit_linux.h
@@ -38,10 +45,14 @@
     LINKS
     QT_LINKS Core Gui
     QT_INCLUDE_PRIVATE Core Gui
+    INCLUDE_PRIVATE kernel contexts
     PREFIX QWK_CORE
 )
 
 set_target_properties(${PROJECT_NAME} PROPERTIES
     CXX_STANDARD 17
     CXX_STANDARD_REQUIRED TRUE
-)
\ No newline at end of file
+)
+
+set(QWINDOWKIT_ENABLED_TARGETS ${QWINDOWKIT_ENABLED_TARGETS} ${PROJECT_NAME} PARENT_SCOPE)
+set(QWINDOWKIT_ENABLED_SUBDIRECTORIES ${QWINDOWKIT_ENABLED_SUBDIRECTORIES} core PARENT_SCOPE)
\ No newline at end of file

--
Gitblit v1.9.1