Move relevant models to devtools

This commit is contained in:
James Graham
2025-04-15 19:09:42 +01:00
parent e787eaabcd
commit 2d5d2c6c06
8 changed files with 14 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2024 James Graham <james.h.graham@protonmail.com>
# SPDX-License-Identifier: BSD-2-Clause
qt_add_library(devtools STATIC)
ecm_add_qml_module(devtools GENERATE_PLUGIN_SOURCE
qt_add_library(Devtools STATIC)
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
@@ -13,4 +13,14 @@ ecm_add_qml_module(devtools GENERATE_PLUGIN_SOURCE
RoomData.qml
ServerData.qml
StateKeys.qml
SOURCES
models/statefiltermodel.cpp
models/statekeysmodel.cpp
models/statemodel.cpp
)
target_include_directories(Devtools PRIVATE ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/models)
target_link_libraries(Devtools PRIVATE
Qt::Core
LibNeoChat
)