Port to ecm_add_qml_module

This commit is contained in:
Tobias Fella
2024-07-06 19:50:20 +02:00
parent bec1ad7bee
commit e0c3a1c143
7 changed files with 8 additions and 8 deletions

View File

@@ -192,7 +192,7 @@ set_source_files_properties(qml/OsmLocationPlugin.qml PROPERTIES
QT_QML_SINGLETON_TYPE TRUE
)
qt_add_qml_module(neochat URI org.kde.neochat NO_PLUGIN
ecm_add_qml_module(neochat URI org.kde.neochat GENERATE_PLUGIN_SOURCE
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat
QML_FILES
qml/Main.qml

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
qt_add_library(chatbar STATIC)
qt_add_qml_module(chatbar
ecm_add_qml_module(chatbar GENERATE_PLUGIN_SOURCE
URI org.kde.neochat.chatbar
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/chatbar
QML_FILES

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
qt_add_library(devtools STATIC)
qt_add_qml_module(devtools
ecm_add_qml_module(devtools GENERATE_PLUGIN_SOURCE
URI org.kde.neochat.devtools
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/devtools
QML_FILES

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
qt_add_library(login STATIC)
qt_add_qml_module(login
ecm_add_qml_module(login GENERATE_PLUGIN_SOURCE
URI org.kde.neochat.login
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/login
QML_FILES

View File

@@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2024 Tobias Fella <tobias.fella@kde.org>
# SPDX-License-Identifier: BSD-2-Clause
kcoreaddons_add_plugin(neochatplugin SOURCES purposeplugin.cpp INSTALL_NAMESPACE "kf6/purpose")
target_link_libraries(neochatplugin
kcoreaddons_add_plugin(neochatshareplugin SOURCES purposeplugin.cpp INSTALL_NAMESPACE "kf6/purpose")
target_link_libraries(neochatshareplugin
Qt::DBus
KF6::Purpose
KF6::KIOGui

View File

@@ -10,7 +10,7 @@ set_source_files_properties(
QT_QML_SINGLETON_TYPE TRUE
)
qt_add_qml_module(settings
ecm_add_qml_module(settings GENERATE_PLUGIN_SOURCE
URI org.kde.neochat.settings
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/settings
QML_FILES

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSD-2-Clause
qt_add_library(timeline STATIC)
qt_add_qml_module(timeline
ecm_add_qml_module(timeline GENERATE_PLUGIN_SOURCE
URI org.kde.neochat.timeline
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/timeline
QML_FILES