2014-03-29 20:36:48 -07:00
|
|
|
project(linux-xshm)
|
|
|
|
|
2014-03-10 15:02:37 -07:00
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
|
|
|
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
|
|
|
|
set(linux-xshm_SOURCES
|
|
|
|
linux-xshm.c
|
|
|
|
xcursor.c
|
2014-04-22 10:53:06 -07:00
|
|
|
xhelpers.c
|
2014-03-10 15:02:37 -07:00
|
|
|
xshm-input.c
|
|
|
|
)
|
|
|
|
set(linux-xshm_HEADERS
|
|
|
|
xcursor.h
|
2014-04-22 10:53:06 -07:00
|
|
|
xhelpers.h
|
2014-03-10 15:02:37 -07:00
|
|
|
)
|
2014-03-11 10:12:54 -07:00
|
|
|
|
2014-03-10 15:02:37 -07:00
|
|
|
add_library(linux-xshm MODULE
|
|
|
|
${linux-xshm_SOURCES}
|
|
|
|
${linux-xshm_HEADERS}
|
|
|
|
)
|
|
|
|
target_link_libraries(linux-xshm
|
|
|
|
libobs
|
|
|
|
${X11_LIBRARIES}
|
|
|
|
${X11_XShm_LIB}
|
|
|
|
${X11_Xfixes_LIB}
|
2014-04-22 10:53:06 -07:00
|
|
|
${X11_Xinerama_LIB}
|
2014-03-10 15:02:37 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
install_obs_plugin(linux-xshm)
|
2014-07-15 06:02:03 -07:00
|
|
|
install_obs_plugin_data(linux-xshm data)
|