diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt b/accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt index aa363c4c..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() | |||
92 | cmake_minimum_required(VERSION 3.20) | 92 | cmake_minimum_required(VERSION 3.20) |
93 | project(custom LANGUAGES CXX) | 93 | project(custom LANGUAGES CXX) |
94 | 94 | ||
95 | find_package(Qt6 REQUIRED COMPONENTS Core Qml) | 95 | find_package(Qt6 REQUIRED COMPONENTS Core Qml DBus) |
96 | 96 | ||
97 | qt_standard_project_setup(REQUIRES 6.6) | 97 | qt_standard_project_setup(REQUIRES 6.6) |
98 | 98 | ||
@@ -102,15 +102,32 @@ qt6_add_qml_module(customplugin | |||
102 | PLUGIN_TARGET customplugin | 102 | PLUGIN_TARGET customplugin |
103 | ) | 103 | ) |
104 | 104 | ||
105 | target_sources(customplugin PRIVATE | 105 | set_source_files_properties(org.keepassxc.KeePassXC.MainWindow.xml PROPERTIES |
106 | Chrono.cpp Chrono.hpp | 106 | CLASSNAME DBusKeePassXC |
107 | NO_NAMESPACE TRUE | ||
107 | ) | 108 | ) |
108 | 109 | ||
110 | qt_add_dbus_interface(DBUS_INTERFACES | ||
111 | org.keepassxc.KeePassXC.MainWindow.xml | ||
112 | dbus_keepassxc | ||
113 | ) | ||
114 | |||
115 | include_directories(${CMAKE_SOURCE_DIR}/build) | ||
116 | |||
109 | target_compile_features(customplugin PUBLIC cxx_std_26) | 117 | target_compile_features(customplugin PUBLIC cxx_std_26) |
110 | 118 | ||
111 | target_link_libraries(customplugin PRIVATE | 119 | target_link_libraries(customplugin PRIVATE |
112 | Qt6::Core | 120 | Qt6::Core |
113 | Qt6::Qml | 121 | Qt6::Qml |
122 | Qt6::DBus | ||
123 | ) | ||
124 | |||
125 | target_sources(customplugin PRIVATE | ||
126 | Chrono.cpp Chrono.hpp | ||
127 | FileSelector.cpp FileSelector.hpp | ||
128 | KeePassXC.cpp KeePassXC.hpp | ||
129 | Systemd.cpp Systemd.hpp | ||
130 | ${DBUS_INTERFACES} | ||
114 | ) | 131 | ) |
115 | 132 | ||
116 | install_qml_module(customplugin) | 133 | install_qml_module(customplugin) |