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

0001 add_library(KRdp)
0002 
0003 if (BUILD_PLASMA_SESSION)
0004     qt6_generate_wayland_protocol_client_sources(KRdp FILES
0005         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/zkde-screencast-unstable-v1.xml
0006         ${PLASMA_WAYLAND_PROTOCOLS_DIR}/fake-input.xml
0007         ${Wayland_DATADIR}/wayland.xml
0008     )
0009     target_sources(KRdp PRIVATE screencasting.cpp PlasmaScreencastV1Session.cpp)
0010 endif()
0011 
0012 target_sources(KRdp PRIVATE
0013     AbstractSession.cpp
0014     RdpConnection.cpp
0015     Server.cpp
0016     Server.h
0017     InputHandler.cpp
0018     InputHandler.h
0019     PeerContext.cpp
0020     PeerContext_p.h
0021     PortalSession.cpp
0022     PortalSession.h
0023     VideoStream.cpp
0024     VideoStream.h
0025     Cursor.cpp
0026     Cursor.h
0027     NetworkDetection.cpp
0028     NetworkDetection.h
0029 )
0030 
0031 ecm_qt_declare_logging_category(KRdp
0032     HEADER krdp_logging.h
0033     IDENTIFIER KRDP
0034     CATEGORY_NAME org.kde.krdp
0035     DESCRIPTION "KRdp"
0036     EXPORT KRdp
0037     DEFAULT_SEVERITY Debug
0038 )
0039 
0040 ecm_generate_export_header(KRdp
0041     BASE_NAME KRdp
0042     VERSION ${CMAKE_PROJECT_VERSION}
0043     DEPRECATED_BASE_VERSION 0
0044     EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
0045 )
0046 
0047 qt6_add_dbus_interface(_dbus_sources xdp_dbus_remotedesktop_interface.xml xdp_dbus_remotedesktop_interface)
0048 qt6_add_dbus_interface(_dbus_sources xdp_dbus_screencast_interface.xml xdp_dbus_screencast_interface)
0049 target_sources(KRdp PRIVATE ${_dbus_sources})
0050 
0051 if ("${FreeRDP_VERSION_MAJOR}" STREQUAL "3")
0052     target_compile_definitions(KRdp PRIVATE -DFREERDP3)
0053 endif()
0054 
0055 target_include_directories(KRdp PUBLIC ${FreeRDP_INCLUDE_DIR} ${WinPR_INCLUDE_DIR} ${FreeRDP_Server_INCLUDE_DIR})
0056 
0057 target_link_libraries(KRdp PUBLIC
0058     Qt::Core
0059     Qt::Gui
0060     Qt::Network
0061     Qt::DBus
0062     Qt::WaylandClient
0063     Qt::GuiPrivate
0064 
0065     freerdp
0066     winpr
0067     freerdp-server
0068     K::KPipeWire
0069     K::KPipeWireRecord
0070     XKB::XKB
0071 )
0072 
0073 set_target_properties(KRdp PROPERTIES
0074     VERSION ${PROJECT_VERSION}
0075     SOVERSION ${PROJECT_VERSION_MAJOR}
0076 )
0077 
0078 install(TARGETS KRdp DESTINATION ${KDE_INSTALL_LIBDIR})
0079 
0080 ecm_qt_install_logging_categories(EXPORT KRdp DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})