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这几个按钮到标题栏。

---
 examples/CMakeLists.txt |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index db45e1a..5d27181 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -7,12 +7,17 @@
 
     add_executable(${_target})
     qm_configure_target(${_target} ${ARGN})
-    qm_add_win_rc(${_target} ICON ../shared/resources/example.ico)
+    qm_add_win_rc(${_target} ICON ${QWK_EXAMPLES_DIR}/shared/resources/app/example.ico)
     qm_add_win_manifest(${_target})
+    qm_add_mac_bundle(${_target} ICON ${QWK_EXAMPLES_DIR}/shared/resources/app/example.icns)
 endmacro()
 
 add_subdirectory(shared)
 
-add_subdirectory(mainwindow)
+if(QWINDOWKIT_BUILD_WIDGETS)
+    add_subdirectory(mainwindow)
+endif()
 
-add_subdirectory(qml)
\ No newline at end of file
+if(QWINDOWKIT_BUILD_QUICK)
+    add_subdirectory(qml)
+endif()
\ No newline at end of file

--
Gitblit v1.9.1