Warning, /plasma-bigscreen/plasma-remotecontrollers/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ecm_qt_declare_logging_category(SRCS HEADER plasmarc-evdev-debug.h IDENTIFIER PLASMARC_EVDEV CATEGORY_NAME org.kde.plasma.remotecontrollers.evdev DESCRIPTION "Plasma Remote Controllers - evdev" DEFAULT_SEVERITY Info EXPORT PLASMARC)
0002 ecm_qt_declare_logging_category(SRCS HEADER plasmarc-debug.h IDENTIFIER PLASMARC CATEGORY_NAME org.kde.plasma.remotecontrollers DESCRIPTION "Plasma Remote Controllers" DEFAULT_SEVERITY Info EXPORT PLASMARC)
0003 
0004 add_executable(plasma-remotecontrollers)
0005 qt6_generate_wayland_protocol_client_sources(plasma-remotecontrollers FILES ${PLASMA_WAYLAND_PROTOCOLS_DIR}/fake-input.xml)
0006 qt_add_dbus_interface(SRCS ${SCREENSAVER_DBUS_INTERFACE} screensaver_interface)
0007 
0008 target_sources(plasma-remotecontrollers PRIVATE
0009     main.cpp
0010     controllermanager.cpp
0011     notificationsmanager.cpp
0012     device.cpp
0013     abstractsystem.cpp
0014     uinputsystem.cpp
0015     kwinfakeinputsystem.cpp
0016     evdev/evdevcontroller.cpp
0017     evdev/evdevdbusinterface.cpp
0018     controllermanagerdbusinterface.cpp
0019     controllermanager.h
0020     notificationsmanager.h
0021     device.h
0022     abstractsystem.h
0023     uinputsystem.h
0024     kwinfakeinputsystem.h
0025     evdev/evdevcontroller.h
0026     evdev/evdevdbusinterface.h
0027     controllermanagerdbusinterface.h
0028     ${SRCS}
0029 )
0030 
0031 target_link_libraries(plasma-remotecontrollers
0032     ${CMAKE_DL_LIBS}
0033     Qt::Core
0034     Qt::DBus
0035     Qt::Gui
0036     Qt::WaylandClient
0037     KF6::ConfigCore
0038     KF6::Notifications
0039     KF6::Solid
0040     KF6::I18n
0041     KF6::DBusAddons
0042     KF6::CoreAddons
0043     KF6::WindowSystem
0044     KF6::StatusNotifierItem
0045     PW::LibTaskManager
0046     PkgConfig::Evdev
0047     Wayland::Client
0048 )
0049 target_compile_definitions(plasma-remotecontrollers PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
0050 
0051 kconfig_add_kcfg_files(plasma-remotecontrollers remotecontrollers.kcfgc GENERATE_MOC)
0052 
0053 if(XWiimote_FOUND)
0054     set(WIIMOTE_SRCS
0055         wiimote/wiimotecontroller.cpp wiimote/wiimotecontroller.h
0056         wiimote/wiimote.cpp)
0057     target_sources(plasma-remotecontrollers PUBLIC ${WIIMOTE_SRCS})
0058     target_link_libraries(plasma-remotecontrollers PkgConfig::XWiimote)
0059     add_definitions(-DHAS_XWIIMOTE)
0060 endif()
0061 
0062 if (TARGET PkgConfig::Libcec)
0063     set(LIBCEC_SRCS libcec/ceccontroller.cpp libcec/ceccontroller.h)
0064     target_sources(plasma-remotecontrollers PUBLIC ${LIBCEC_SRCS})
0065     target_link_libraries(plasma-remotecontrollers PkgConfig::Libcec)
0066     add_definitions(-DHAS_LIBCEC)
0067 endif()
0068 
0069 install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/remotecontrollers)
0070 
0071 install(FILES libcec/org.kde.plasma.remotecontrollers.CEC.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR})
0072 install(FILES evdev/org.kde.plasma.remotecontrollers.EVDEV.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR})
0073 install(FILES org.kde.plasma.remotecontrollers.ControllerManager.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR})
0074 
0075 install(TARGETS plasma-remotecontrollers DESTINATION ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})