2014-03-11 11:33:04 -07:00
|
|
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
|
2014-07-23 13:18:01 -07:00
|
|
|
find_package(Libv4l2)
|
|
|
|
if(NOT LIBV4L2_FOUND)
|
|
|
|
message(STATUS "libv4l2 not found, disabling v4l2 plugin")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
|
2014-03-11 11:33:04 -07:00
|
|
|
set(linux-v4l2_SOURCES
|
|
|
|
linux-v4l2.c
|
|
|
|
v4l2-input.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(linux-v4l2 MODULE
|
|
|
|
${linux-v4l2_SOURCES}
|
|
|
|
)
|
|
|
|
target_link_libraries(linux-v4l2
|
|
|
|
libobs
|
2014-07-23 13:18:01 -07:00
|
|
|
${LIBV4L2_LIBRARIES}
|
2014-03-11 11:33:04 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
install_obs_plugin(linux-v4l2)
|
2014-07-15 06:02:03 -07:00
|
|
|
install_obs_plugin_data(linux-v4l2 data)
|