From 76af3a469b5f4605ba025187dc61ef89ed61d716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Mon, 21 Oct 2024 11:51:22 +0200 Subject: [PATCH] chore: help QtCreator find the new StatusQ module - also help recognize other interesting project files --- storybook/CMakeLists.txt | 1 + ui/nim-status-client.pro | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/storybook/CMakeLists.txt b/storybook/CMakeLists.txt index 9f35efdfe4..621b536b2c 100644 --- a/storybook/CMakeLists.txt +++ b/storybook/CMakeLists.txt @@ -119,6 +119,7 @@ add_test(NAME QmlTests COMMAND QmlTests -platform offscreen) list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/../ui/app") list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/../ui/imports") +list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/../ui/StatusQ") list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/../ui/StatusQ/src") list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/src") list(APPEND QML_DIRS "${CMAKE_SOURCE_DIR}/pages") diff --git a/ui/nim-status-client.pro b/ui/nim-status-client.pro index 951f14c8c4..62cf398cea 100644 --- a/ui/nim-status-client.pro +++ b/ui/nim-status-client.pro @@ -32,8 +32,17 @@ OTHER_FILES += $$files("$$PWD/*.js", true) OTHER_FILES += $$files("$$PWD/../src/*.nim", true) OTHER_FILES += $$files("$$PWD/../monitoring/*.qml", true) +OTHER_FILES += $$files("$$PWD/../vendor/DOtherSide/lib/*.cpp", true) +OTHER_FILES += $$files("$$PWD/../vendor/DOtherSide/lib/*.h", true) + +OTHER_FILES += $$files("$$PWD/../vendor/SortFilterProxyModel/*.cpp", true) +OTHER_FILES += $$files("$$PWD/../vendor/SortFilterProxyModel/*.h", true) + +OTHER_FILES += $$files("$$PWD/../vendor/nimqml/src/*.nim", true) + # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = $$PWD/imports \ + $$PWD/StatusQ \ $$PWD/StatusQ/src \ $$PWD/app @@ -45,4 +54,4 @@ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target -RESOURCES += resources.qrc +RESOURCES += resources.qrc StatusQ/src/assets.qrc StatusQ/src/statusq.qrc