From 8a551339cbfaf106ac7d6f1ca5230196be539167 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 8 Sep 2025 20:00:22 +0200 Subject: ... --- .../shell/quickshell-plugins/CMakeLists.txt | 24 ++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt') diff --git a/accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt b/accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt index 2123ed35..a7e88fa7 100644 --- a/accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt +++ b/accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt @@ -92,7 +92,7 @@ endfunction() cmake_minimum_required(VERSION 3.20) project(custom LANGUAGES CXX) -find_package(Qt6 REQUIRED COMPONENTS Core Qml) +find_package(Qt6 REQUIRED COMPONENTS Core Qml DBus) qt_standard_project_setup(REQUIRES 6.6) @@ -102,16 +102,32 @@ qt6_add_qml_module(customplugin PLUGIN_TARGET customplugin ) -target_sources(customplugin PRIVATE - Chrono.cpp Chrono.hpp - FileSelector.cpp FileSelector.hpp +set_source_files_properties(org.keepassxc.KeePassXC.MainWindow.xml PROPERTIES + CLASSNAME DBusKeePassXC + NO_NAMESPACE TRUE ) +qt_add_dbus_interface(DBUS_INTERFACES + org.keepassxc.KeePassXC.MainWindow.xml + dbus_keepassxc +) + +include_directories(${CMAKE_SOURCE_DIR}/build) + target_compile_features(customplugin PUBLIC cxx_std_26) target_link_libraries(customplugin PRIVATE Qt6::Core Qt6::Qml + Qt6::DBus +) + +target_sources(customplugin PRIVATE + Chrono.cpp Chrono.hpp + FileSelector.cpp FileSelector.hpp + KeePassXC.cpp KeePassXC.hpp + Systemd.cpp Systemd.hpp + ${DBUS_INTERFACES} ) install_qml_module(customplugin) -- cgit v1.2.3