2014-08-29 16:22:14 -07:00
|
|
|
project(linux-capture)
|
|
|
|
|
|
|
|
find_package(X11 REQUIRED)
|
2014-08-29 17:05:32 -07:00
|
|
|
if(NOT X11_Xcomposite_FOUND)
|
|
|
|
message(STATUS "Xcomposite library not found, linux-capture plugin disabled")
|
|
|
|
return()
|
|
|
|
endif()
|
2014-08-29 16:22:14 -07:00
|
|
|
|
2014-08-29 17:05:32 -07:00
|
|
|
include_directories(SYSTEM
|
|
|
|
"${CMAKE_SOURCE_DIR}/libobs"
|
|
|
|
${X11_Xcomposite_INCLUDE_PATH}
|
|
|
|
${X11_X11_INCLUDE_PATH}
|
|
|
|
)
|
2014-08-29 16:22:14 -07:00
|
|
|
|
|
|
|
set(linux-capture_SOURCES
|
|
|
|
linux-capture.c
|
|
|
|
xcursor.c
|
|
|
|
xhelpers.c
|
2014-08-29 17:05:32 -07:00
|
|
|
xshm-input.c
|
|
|
|
xcomposite-main.cpp
|
|
|
|
xcompcap-main.cpp
|
|
|
|
xcompcap-helper.cpp
|
2014-08-29 16:22:14 -07:00
|
|
|
)
|
|
|
|
set(linux-capture_HEADERS
|
|
|
|
xcursor.h
|
|
|
|
xhelpers.h
|
2014-08-29 17:05:32 -07:00
|
|
|
xcompcap-main.hpp
|
|
|
|
xcompcap-helper.hpp
|
2014-08-29 16:22:14 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(linux-capture MODULE
|
|
|
|
${linux-capture_SOURCES}
|
|
|
|
${linux-capture_HEADERS}
|
|
|
|
)
|
|
|
|
target_link_libraries(linux-capture
|
|
|
|
libobs
|
2014-08-29 17:05:32 -07:00
|
|
|
glad
|
2014-08-29 16:22:14 -07:00
|
|
|
${X11_LIBRARIES}
|
|
|
|
${X11_XShm_LIB}
|
|
|
|
${X11_Xfixes_LIB}
|
|
|
|
${X11_Xinerama_LIB}
|
2014-08-29 17:05:32 -07:00
|
|
|
${X11_X11_LIB}
|
|
|
|
${X11_Xcomposite_LIB}
|
2014-08-29 16:22:14 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
install_obs_plugin_with_data(linux-capture data)
|