2014-08-29 16:22:14 -07:00
|
|
|
project(linux-capture)
|
|
|
|
|
|
|
|
find_package(X11 REQUIRED)
|
2022-03-16 23:10:42 +01:00
|
|
|
if(NOT TARGET X11::Xcomposite)
|
2022-03-25 18:51:41 +01:00
|
|
|
obs_status(FATAL_ERROR "linux-capture - Xcomposite library not found.")
|
2014-08-29 17:05:32 -07:00
|
|
|
endif()
|
2022-03-16 23:10:42 +01:00
|
|
|
find_package(XCB COMPONENTS XCB XFIXES RANDR SHM XINERAMA)
|
2014-08-29 16:22:14 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
add_library(linux-capture MODULE)
|
|
|
|
add_library(OBS::capture ALIAS linux-capture)
|
2014-12-21 15:04:07 +01:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_sources(
|
|
|
|
linux-capture
|
|
|
|
PRIVATE linux-capture.c
|
|
|
|
xcursor.c
|
|
|
|
xcursor.h
|
|
|
|
xcursor-xcb.c
|
|
|
|
xcursor-xcb.h
|
|
|
|
xhelpers.c
|
|
|
|
xhelpers.h
|
|
|
|
xshm-input.c
|
|
|
|
xcomposite-main.cpp
|
|
|
|
xcompcap-main.cpp
|
|
|
|
xcompcap-main.hpp
|
|
|
|
xcompcap-helper.cpp
|
|
|
|
xcompcap-helper.hpp)
|
2014-08-29 16:22:14 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_link_libraries(
|
|
|
|
linux-capture
|
|
|
|
PRIVATE OBS::libobs
|
|
|
|
OBS::obsglad
|
|
|
|
X11::X11
|
|
|
|
X11::Xfixes
|
|
|
|
X11::Xcomposite
|
|
|
|
XCB::XCB
|
|
|
|
XCB::XFIXES
|
|
|
|
XCB::RANDR
|
|
|
|
XCB::SHM
|
|
|
|
XCB::XINERAMA)
|
2014-08-29 16:22:14 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
set_target_properties(linux-capture PROPERTIES FOLDER "plugins")
|
2021-02-28 17:59:17 -03:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
setup_plugin_target(linux-capture)
|