Warning, /plasma/plasma-workspace/appmenu/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_KEYWORDS) 0002 0003 set(kded_appmenu_SRCS 0004 appmenu.cpp 0005 menuimporter.cpp 0006 appmenu_dbus.cpp 0007 verticalmenu.cpp 0008 ) 0009 0010 qt_add_dbus_adaptor(kded_appmenu_SRCS com.canonical.AppMenu.Registrar.xml 0011 menuimporter.h MenuImporter menuimporteradaptor MenuImporterAdaptor) 0012 0013 qt_add_dbus_adaptor(kded_appmenu_SRCS org.kde.kappmenu.xml 0014 appmenu_dbus.h AppmenuDBus appmenuadaptor AppmenuAdaptor) 0015 0016 kcoreaddons_add_plugin(appmenu SOURCES ${kded_appmenu_SRCS} INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/kded") 0017 0018 pkg_check_modules(XKBCommon REQUIRED IMPORTED_TARGET xkbcommon) 0019 0020 target_link_libraries(appmenu 0021 Qt::DBus 0022 Qt::WaylandClientPrivate 0023 KF5::DBusAddons 0024 KF5::KIOCore 0025 KF5::WaylandClient 0026 KF5::WindowSystem 0027 Wayland::Client 0028 PkgConfig::XKBCommon 0029 dbusmenuqt 0030 ) 0031 if (QT_MAJOR_VERSION EQUAL "5") 0032 target_link_libraries(appmenu Qt::XkbCommonSupportPrivate) 0033 endif() 0034 0035 if (HAVE_X11) 0036 target_link_libraries(appmenu XCB::XCB) 0037 if (QT_MAJOR_VERSION EQUAL "5") 0038 target_link_libraries(appmenu Qt::X11Extras) 0039 else() 0040 target_link_libraries(appmenu Qt::GuiPrivate) 0041 endif() 0042 endif() 0043 0044 ecm_qt_declare_logging_category(appmenu 0045 HEADER appmenu_debug.h 0046 IDENTIFIER APPMENU_DEBUG 0047 CATEGORY_NAME org.kde.plasma.appmenu) 0048 0049 ########### install files ############### 0050 0051 install( FILES com.canonical.AppMenu.Registrar.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} ) 0052 install( FILES org.kde.kappmenu.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} )