Warning, /plasma/plasma-pass/plugin/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org> 0002 # 0003 # SPDX-License-Identifier: LGPL-2.1-or-later 0004 0005 ###### STATIC LIBRARY ###### 0006 0007 set(plasmapasslib_SRCS 0008 abbreviations.cpp 0009 klipperutils.cpp 0010 otpprovider.cpp 0011 providerbase.cpp 0012 passwordfiltermodel.cpp 0013 passwordsmodel.cpp 0014 passwordsortproxymodel.cpp 0015 passwordprovider.cpp 0016 0017 abbreviations.h 0018 klipperutils.h 0019 otpprovider.h 0020 providerbase.h 0021 passwordfiltermodel.h 0022 passwordsmodel.h 0023 passwordsortproxymodel.h 0024 passwordprovider.h 0025 ) 0026 0027 qt_add_dbus_interfaces(plasmapasslib_SRCS 0028 ${CMAKE_CURRENT_SOURCE_DIR}/interfaces/org.kde.klipper.klipper.xml 0029 ) 0030 0031 ecm_qt_declare_logging_category(plasmapasslib_SRCS 0032 HEADER plasmapass_debug.h 0033 IDENTIFIER PlasmaPass::PLASMAPASS_LOG 0034 CATEGORY_NAME org.kde.plasma.pass 0035 ) 0036 0037 add_library(plasmapass STATIC ${plasmapasslib_SRCS}) 0038 set_property(TARGET plasmapass PROPERTY POSITION_INDEPENDENT_CODE ON) 0039 target_link_libraries(plasmapass 0040 Qt::Core 0041 Qt::DBus 0042 Qt::Qml 0043 Qt::Concurrent 0044 KF${KF_MAJOR_VERSION}::I18n 0045 KF${KF_MAJOR_VERSION}::ItemModels 0046 OATH::OATH 0047 ) 0048 0049 if (QT_MAJOR_VERSION STREQUAL "6") 0050 target_link_libraries(plasmapass QGpgmeQt6 Plasma::Plasma5Support Qt::Gui KF6::ConfigCore KF6::CoreAddons) 0051 else() 0052 target_link_libraries(plasmapass QGpgme KF${KF_MAJOR_VERSION}::Plasma) 0053 endif() 0054 0055 0056 ########### PLUGN ########### 0057 0058 set(plasmapassplugin_SRCS 0059 plasmapassplugin.cpp 0060 plasmapassplugin.h 0061 ) 0062 0063 add_library(plasmapassplugin SHARED ${plasmapassplugin_SRCS}) 0064 target_link_libraries(plasmapassplugin 0065 plasmapass 0066 ) 0067 0068 0069 install(TARGETS plasmapassplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/plasmapass) 0070 install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/plasmapass)