# SPDX-FileCopyrightText: 2024 James Graham # SPDX-License-Identifier: BSD-2-Clause qt_add_library(Settings STATIC) set_source_files_properties( RoomSettingsView.qml NeoChatSettingsView.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE ) 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 NeoChatSettingsView.qml RoomSettingsView.qml AccountsPage.qml AccountEditorPage.qml AppearanceSettingsPage.qml DevicesPage.qml EmoticonsPage.qml EmoticonEditorPage.qml GlobalNotificationsPage.qml NeoChatGeneralPage.qml NeoChatSecurityPage.qml NetworkProxyPage.qml Permissions.qml PushNotification.qml RoomGeneralPage.qml RoomSecurityPage.qml ColorScheme.qml ConfirmDeactivateAccountDialog.qml ConfirmEncryptionDialog.qml DevicesCard.qml DeviceDelegate.qml EmoticonFormCard.qml IdentityServerDelegate.qml IgnoredUsersDialog.qml NotificationRuleItem.qml PasswordSheet.qml PowerLevelDialog.qml SelectParentDialog.qml SelectSpacesDialog.qml ThemeRadioButton.qml ThreePIdCard.qml ImportKeysDialog.qml ExportKeysDialog.qml RoomSortParameterDialog.qml RoomProfile.qml RoomAdvancedPage.qml KeyboardShortcutsPage.qml SOURCES colorschemer.cpp threepidaddhelper.cpp threepidbindhelper.cpp models/accountemoticonmodel.cpp models/devicesmodel.cpp models/devicesproxymodel.cpp models/emoticonfiltermodel.cpp models/permissionsmodel.cpp models/pushrulemodel.cpp models/roomsortparametermodel.cpp models/threepidmodel.cpp DEPENDENCIES QtCore io.github.quotient_im.libquotient org.kde.neochat.libneochat ) target_include_directories(Settings PRIVATE ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/models) target_link_libraries(Settings PRIVATE KF6::ColorScheme KF6::I18n QuotientQt6 LibNeoChat )