Warning, /plasma/plasma-workspace/libtaskmanager/declarative/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories(${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..)
0002 
0003 add_library(taskmanagerplugin SHARED taskmanagerplugin.cpp)
0004 
0005 target_link_libraries(taskmanagerplugin taskmanager)
0006 
0007 install(TARGETS taskmanagerplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/taskmanager)
0008 install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/taskmanager)
0009 
0010 ecm_qt_declare_logging_category(SRCS
0011                             HEADER logging.h
0012                             IDENTIFIER PIPEWIRE_LOGGING
0013                             CATEGORY_NAME plasma_workspace_pipewire_logging
0014                             DESCRIPTION "PipeWire components for window thumbnails"
0015                             EXPORT PlasmaWorkspacePipeWire)
0016 ecm_qt_install_logging_categories(
0017     EXPORT PlasmaWorkspacePipeWire
0018     FILE myproject.categories
0019     DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}"
0020 )
0021 
0022 if (QT_MAJOR_VERSION EQUAL "5")
0023     ecm_add_qtwayland_client_protocol(SRCS
0024         PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/zkde-screencast-unstable-v1.xml
0025         BASENAME zkde-screencast-unstable-v1
0026     )
0027 else()
0028     qt6_generate_wayland_protocol_client_sources(taskmanagerplugin FILES
0029         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/zkde-screencast-unstable-v1.xml)
0030 endif()
0031 target_include_directories(taskmanagerplugin PRIVATE ${Libdrm_INCLUDE_DIR})
0032 
0033 target_sources(taskmanagerplugin PUBLIC screencasting.cpp screencastingrequest.cpp ${SRCS})
0034 target_link_libraries(taskmanagerplugin Qt::Qml Qt::GuiPrivate
0035                                         KF5::I18n
0036                                         Qt::WaylandClient
0037                                         Wayland::Client)
0038 if (QT_MAJOR_VERSION EQUAL "5")
0039     if (${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GLESv2")
0040         target_link_libraries(taskmanagerplugin Qt5::Gui_GLESv2)
0041     elseif(TARGET Qt5::Gui_GL)
0042         target_link_libraries(taskmanagerplugin Qt5::Gui_GL)
0043     endif()
0044     if (TARGET Qt5::Gui_EGL)
0045         target_link_libraries(taskmanagerplugin Qt5::Gui_EGL)
0046     endif()
0047 endif()
0048 
0049 if(TARGET K::KPipeWire)
0050     target_compile_definitions(taskmanagerplugin PRIVATE -DWITH_KPIPEWIRE)
0051     target_link_libraries(taskmanagerplugin PkgConfig::PipeWire
0052                                             K::KPipeWire)
0053 endif()