diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-08 20:00:22 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-08 20:00:22 +0200 |
| commit | 8a551339cbfaf106ac7d6f1ca5230196be539167 (patch) | |
| tree | 20dd3cb9f12dd94fa22fcd2d866c3cf586f8931a /accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt | |
| parent | 14d4d05acc235ab7033316d16530783c90e95faa (diff) | |
| download | nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.gz nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.bz2 nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.xz nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell-plugins/CMakeLists.txt | 24 |
1 files changed, 20 insertions, 4 deletions
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() | |||
| 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,16 +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 | FileSelector.cpp FileSelector.hpp | 107 | NO_NAMESPACE TRUE |
| 108 | ) | 108 | ) |
| 109 | 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 | |||
| 110 | target_compile_features(customplugin PUBLIC cxx_std_26) | 117 | target_compile_features(customplugin PUBLIC cxx_std_26) |
| 111 | 118 | ||
| 112 | target_link_libraries(customplugin PRIVATE | 119 | target_link_libraries(customplugin PRIVATE |
| 113 | Qt6::Core | 120 | Qt6::Core |
| 114 | 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} | ||
| 115 | ) | 131 | ) |
| 116 | 132 | ||
| 117 | install_qml_module(customplugin) | 133 | install_qml_module(customplugin) |
