From 7c6efe801e69206db6528c8b19d5a52b921917ec Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 29 Jul 2024 15:24:11 +0100 Subject: [PATCH] Fix the adjacency matrix loader --- source/plugins/correlation/CMakeLists.txt | 3 +++ .../generic/ui/qml/Graphia/Plugins/Generic/CMakeLists.txt | 5 +++++ .../ui/qml/Graphia/Plugins/WebSearch/CMakeLists.txt | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/source/plugins/correlation/CMakeLists.txt b/source/plugins/correlation/CMakeLists.txt index 7a2ffe44d..f5c13ce9f 100644 --- a/source/plugins/correlation/CMakeLists.txt +++ b/source/plugins/correlation/CMakeLists.txt @@ -48,6 +48,9 @@ else() qt_add_library(${PluginName} ${LINK_TYPE} ${SOURCES} ${HEADERS}) endif() +set(CORRELATION_PLUGIN_QML_MODULE_DIR + "${CMAKE_CURRENT_LIST_DIR}/ui/qml/Graphia/Plugins/Correlation" PARENT_SCOPE) + add_subdirectory(ui/qml/Graphia/Plugins/Correlation) if(NOT APPLE AND NOT MSVC) diff --git a/source/plugins/generic/ui/qml/Graphia/Plugins/Generic/CMakeLists.txt b/source/plugins/generic/ui/qml/Graphia/Plugins/Generic/CMakeLists.txt index c8ae64a5a..de68b4942 100644 --- a/source/plugins/generic/ui/qml/Graphia/Plugins/Generic/CMakeLists.txt +++ b/source/plugins/generic/ui/qml/Graphia/Plugins/Generic/CMakeLists.txt @@ -13,8 +13,13 @@ qt_add_qml_module(generic_qml matrix.svg table.svg tools.svg + SOURCES + ${CORRELATION_PLUGIN_QML_MODULE_DIR}/graphsizeestimateplot.h + ${CORRELATION_PLUGIN_QML_MODULE_DIR}/graphsizeestimateplot.cpp ) +target_include_directories(generic_qml PRIVATE ${CORRELATION_PLUGIN_QML_MODULE_DIR}) + target_link_libraries(generic_qml PRIVATE Qt6::Quick ) diff --git a/source/plugins/websearch/ui/qml/Graphia/Plugins/WebSearch/CMakeLists.txt b/source/plugins/websearch/ui/qml/Graphia/Plugins/WebSearch/CMakeLists.txt index a535ff27e..3f007bb79 100644 --- a/source/plugins/websearch/ui/qml/Graphia/Plugins/WebSearch/CMakeLists.txt +++ b/source/plugins/websearch/ui/qml/Graphia/Plugins/WebSearch/CMakeLists.txt @@ -26,8 +26,13 @@ qt_add_qml_module(websearch_qml globe.svg ${GENERIC_PLUGIN_QML_MODULE_DIR}/matrix.svg ${GENERIC_PLUGIN_QML_MODULE_DIR}/table.svg + SOURCES + ${CORRELATION_PLUGIN_QML_MODULE_DIR}/graphsizeestimateplot.h + ${CORRELATION_PLUGIN_QML_MODULE_DIR}/graphsizeestimateplot.cpp ) +target_include_directories(websearch_qml PRIVATE ${CORRELATION_PLUGIN_QML_MODULE_DIR}) + target_link_libraries(websearch_qml PRIVATE Qt6::Quick )