From 7d3194034cb587d2abd733e2f19196859e5d8286 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 4 Jan 2024 14:42:17 -0500 Subject: [PATCH] Use ECM QML module so the module can be used outside of repository --- CMakeLists.txt | 1 + src/declarative/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 736b433..edebfcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ include(FeatureSummary) include(GenerateExportHeader) include(KDEClangFormat) include(ECMQtDeclareLoggingCategory) +include(ECMQmlModule) find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS WaylandClient Qml) diff --git a/src/declarative/CMakeLists.txt b/src/declarative/CMakeLists.txt index f9ea9fe..07bcda9 100644 --- a/src/declarative/CMakeLists.txt +++ b/src/declarative/CMakeLists.txt @@ -1,9 +1,10 @@ # SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez # SPDX-License-Identifier: BSD-3-Clause -qt_add_qml_module(LayerShellQtQml +ecm_add_qml_module(LayerShellQtQml URI "org.kde.layershell" VERSION 1.0 SOURCES layershellqtplugin.cpp) target_link_libraries(LayerShellQtQml PRIVATE Qt::Qml LayerShellQtInterface) +ecm_finalize_qml_module(LayerShellQtQml DESTINATION ${KDE_INSTALL_QMLDIR}) \ No newline at end of file