From 87b7caada401149efda7bfee5289babdbcd5165f Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 30 4月 2024 14:01:16 +0800 Subject: [PATCH] Update version --- examples/mainwindow/CMakeLists.txt | 12 +++--------- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/mainwindow/CMakeLists.txt b/examples/mainwindow/CMakeLists.txt index 1554a8a..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 +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