Files
neochat/src/spaces/CMakeLists.txt
James Graham 6ef7acc8e5 Remove any dependencies on App from the spaces module.
Remove any dependencies on App from the spaces module. This requires moving some dialogs either to spaces, or libneochat if they're used more generically.
2025-05-18 14:38:57 +01:00

26 lines
765 B
CMake

# SPDX-FileCopyrightText: 2024 James Graham <james.h.graham@protonmail.com>
# SPDX-License-Identifier: BSD-2-Clause
qt_add_library(Spaces STATIC)
ecm_add_qml_module(Spaces GENERATE_PLUGIN_SOURCE
URI org.kde.neochat.spaces
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/spaces
QML_FILES
SpaceHomePage.qml
SpaceHierarchyDelegate.qml
RemoveChildDialog.qml
SelectExistingRoomDialog.qml
SOURCES
models/spacechildrenmodel.cpp
models/spacechildsortfiltermodel.cpp
models/spacetreeitem.cpp
)
target_include_directories(Spaces PRIVATE ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/models)
target_link_libraries(Spaces PRIVATE
Qt::Core
Qt::Quick
KF6::Kirigami
LibNeoChat
)