From 6002cd46a2c5a1c2c4afdbf8e491e76f68b9bfd8 Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周一, 27 5月 2024 23:21:25 +0800
Subject: [PATCH] Improve fixed width/height/size hit testing

---
 examples/mainwindow/CMakeLists.txt |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/examples/mainwindow/CMakeLists.txt b/examples/mainwindow/CMakeLists.txt
index f981f1a..bd16470 100644
--- a/examples/mainwindow/CMakeLists.txt
+++ b/examples/mainwindow/CMakeLists.txt
@@ -1,15 +1,9 @@
 project(QWKExample_MainWindow)
 
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTOUIC ON)
-set(CMAKE_AUTORCC ON)
-
 file(GLOB _src *.h *.cpp)
 
-add_executable(${PROJECT_NAME})
-
-qm_configure_target(${PROJECT_NAME}
-    SOURCES ${_src}
-    QT_LINKS Core Gui Widgets
-    LINKS QWKWidgets
+qwk_add_example(${PROJECT_NAME}
+    SOURCES ${_src} mainwindow.qrc ../shared/resources/shared.qrc
+    QT_LINKS Core Gui Widgets # MultimediaWidgets
+    LINKS QWKWidgets WidgetFrame
 )
\ No newline at end of file

--
Gitblit v1.9.1