CMakeLists.txt 1.36 KB
Newer Older
1
2
3
4
5
6
7
8
9
include_directories (${CMAKE_CURRENT_SOURCE_DIR}
                     ${CMAKE_CURRENT_BINARY_DIR}
)

set (krfb_framebuffer_pw_SRCS
     pw_framebuffer.cpp
     pw_framebufferplugin.cpp
)

10
11
12
13
14
15
16
17
18

ecm_qt_declare_logging_category(krfb_framebuffer_pw_SRCS
    HEADER krfb_fb_pipewire_debug.h
    IDENTIFIER KRFB_FB_PIPEWIRE
    CATEGORY_NAME krfb.framebuffer.pipewire
    DESCRIPTION "KRFB PipeWire framebuffer plugin"
    EXPORT KRFB
)

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
qt5_add_dbus_interface(
   krfb_framebuffer_pw_SRCS
   ${CMAKE_SOURCE_DIR}/dbus/xdp_dbus_screencast_interface.xml
   xdp_dbus_screencast_interface
)

qt5_add_dbus_interface(
   krfb_framebuffer_pw_SRCS
   ${CMAKE_SOURCE_DIR}/dbus/xdp_dbus_remotedesktop_interface.xml
   xdp_dbus_remotedesktop_interface
)

add_library(krfb_framebuffer_pw
    MODULE
    ${krfb_framebuffer_pw_SRCS}
)
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
35
set_property(TARGET krfb_framebuffer_pw PROPERTY C_STANDARD 99)
36

Jan Grulich's avatar
Jan Grulich committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
target_link_libraries(krfb_framebuffer_pw
                      Qt5::Core
                      Qt5::Gui
                      Qt5::DBus
                      KF5::CoreAddons
                      krfbprivate
                      PkgConfig::PipeWire
)

if (HAVE_DMA_BUF)
    target_link_libraries(krfb_framebuffer_pw
                          ${epoxy_LIBRARIES}
                          gbm::gbm
    )
endif()
52
53

install (TARGETS krfb_framebuffer_pw
54
         DESTINATION ${KDE_INSTALL_PLUGINDIR}/krfb/framebuffer
55
)