From e9f790d3533ebaee1f782e91b6e13b2c6375c86a Mon Sep 17 00:00:00 2001 From: SineStriker <55847490+SineStriker@users.noreply.github.com> Date: 周二, 11 2月 2025 23:06:01 +0800 Subject: [PATCH] AWC: fix window attribute handler --- examples/mainwindow/CMakeLists.txt | 17 +++++++---------- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/examples/mainwindow/CMakeLists.txt b/examples/mainwindow/CMakeLists.txt index af9c769..24d2eab 100644 --- a/examples/mainwindow/CMakeLists.txt +++ b/examples/mainwindow/CMakeLists.txt @@ -1,17 +1,14 @@ 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 +qwk_add_example(${PROJECT_NAME} + SOURCES ${_src} mainwindow.qrc ../shared/resources/shared.qrc + QT_LINKS Core Gui Widgets # MultimediaWidgets LINKS QWKWidgets WidgetFrame ) -qm_add_win_manifest(${PROJECT_NAME}) \ No newline at end of file +set_target_properties(${PROJECT_NAME} PROPERTIES + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED TRUE +) \ No newline at end of file -- Gitblit v1.9.1