30 lines
658 B
CMake
Raw Normal View History

2014-04-29 02:59:53 +02:00
project(linux-xcomposite)
find_package(X11)
if(NOT X11_Xcomposite_FOUND)
message(STATUS "Xcomposite library not found, Xcomposite plugin disabled")
return()
endif()
include_directories(
${X11_Xcomposite_INCLUDE_PATH}
${X11_X11_INCLUDE_PATH})
set(linux-xcomposite_SOURCES
plugin-main.cpp
xcompcap-main.cpp
xcompcap-main.h
xcompcap-helper.cpp
xcompcap-helper.h)
add_library(linux-xcomposite MODULE
${linux-xcomposite_SOURCES})
target_link_libraries(linux-xcomposite
libobs
glad
${X11_X11_LIB}
${X11_Xcomposite_LIB})
install_obs_plugin(linux-xcomposite)
2014-07-09 22:12:57 -07:00
install_obs_plugin_data(linux-xcomposite ../../build/data/obs-plugins/linux-xcomposite)