From 40edcbfd2e1b978d62b4b12f90c112694dfccc52 Mon Sep 17 00:00:00 2001 From: SineStriker <55847490+SineStriker@users.noreply.github.com> Date: 周五, 17 5月 2024 11:41:23 +0800 Subject: [PATCH] Merge pull request #81 from JacobMuchow/fix/window-kit-config --- examples/mainwindow/CMakeLists.txt | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/examples/mainwindow/CMakeLists.txt b/examples/mainwindow/CMakeLists.txt index af9c769..bd16470 100644 --- a/examples/mainwindow/CMakeLists.txt +++ b/examples/mainwindow/CMakeLists.txt @@ -1,17 +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 -) - -qm_add_win_manifest(${PROJECT_NAME}) \ No newline at end of file +) \ No newline at end of file -- Gitblit v1.9.1