71200051b0
This moves some functions that are generic to a separate source file. While doing so the api to those functions was improved to be more generic and not depend on knowledge about the internal structure of the plugin.
27 lines
502 B
CMake
27 lines
502 B
CMake
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
find_package(Libv4l2)
|
|
if(NOT LIBV4L2_FOUND)
|
|
message(STATUS "libv4l2 not found, disabling v4l2 plugin")
|
|
return()
|
|
endif()
|
|
|
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
set(linux-v4l2_SOURCES
|
|
linux-v4l2.c
|
|
v4l2-input.c
|
|
v4l2-helpers.c
|
|
)
|
|
|
|
add_library(linux-v4l2 MODULE
|
|
${linux-v4l2_SOURCES}
|
|
)
|
|
target_link_libraries(linux-v4l2
|
|
libobs
|
|
${LIBV4L2_LIBRARIES}
|
|
)
|
|
|
|
install_obs_plugin(linux-v4l2)
|
|
install_obs_plugin_data(linux-v4l2 data)
|