From bdc57c6ec9b08f74ca65a06b8496fbaa3268c5fd Mon Sep 17 00:00:00 2001
From: Dylan Liu <mentalflow@ourdocs.cn>
Date: 周六, 04 5月 2024 20:51:20 +0800
Subject: [PATCH] Fix macOS title bar buttons not displaying properly.

---
 examples/qml/CMakeLists.txt |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/examples/qml/CMakeLists.txt b/examples/qml/CMakeLists.txt
index ed78439..9b834fa 100644
--- a/examples/qml/CMakeLists.txt
+++ b/examples/qml/CMakeLists.txt
@@ -3,7 +3,12 @@
 file(GLOB _src *.h *.cpp *.qrc)
 
 qwk_add_example(${PROJECT_NAME}
-    SOURCES ${_src}
+    SOURCES ${_src} ../shared/resources/shared.qrc
     QT_LINKS Core Gui Qml Quick
     LINKS QWKQuick
-)
\ No newline at end of file
+)
+
+set_target_properties(${PROJECT_NAME} PROPERTIES
+    CXX_STANDARD 17
+    CXX_STANDARD_REQUIRED TRUE
+)

--
Gitblit v1.9.1