Imported Upstream version 0.13.2+dsfg1
This commit is contained in:
commit
fb3990e9e5
2036 changed files with 287360 additions and 0 deletions
48
plugins/linux-v4l2/CMakeLists.txt
Normal file
48
plugins/linux-v4l2/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
project(linux-v4l2)
|
||||
|
||||
if(DISABLE_V4L2)
|
||||
message(STATUS "v4l2 plugin disabled")
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_package(Libv4l2)
|
||||
find_package(LibUDev QUIET)
|
||||
|
||||
if(NOT LIBV4L2_FOUND AND ENABLE_V4L2)
|
||||
message(FATAL_ERROR "libv4l2 not found bit plugin set as enabled")
|
||||
elseif(NOT LIBV4L2_FOUND)
|
||||
message(STATUS "libv4l2 not found, disabling v4l2 plugin")
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT UDEV_FOUND OR DISABLE_UDEV)
|
||||
message(STATUS "udev disabled for v4l2 plugin")
|
||||
else()
|
||||
set(linux-v4l2-udev_SOURCES
|
||||
v4l2-udev.c
|
||||
)
|
||||
add_definitions(-DHAVE_UDEV)
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
SYSTEM "${CMAKE_SOURCE_DIR}/libobs"
|
||||
${LIBV4L2_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
set(linux-v4l2_SOURCES
|
||||
linux-v4l2.c
|
||||
v4l2-input.c
|
||||
v4l2-helpers.c
|
||||
${linux-v4l2-udev_SOURCES}
|
||||
)
|
||||
|
||||
add_library(linux-v4l2 MODULE
|
||||
${linux-v4l2_SOURCES}
|
||||
)
|
||||
target_link_libraries(linux-v4l2
|
||||
libobs
|
||||
${LIBV4L2_LIBRARIES}
|
||||
${UDEV_LIBRARIES}
|
||||
)
|
||||
|
||||
install_obs_plugin_with_data(linux-v4l2 data)
|
||||
Loading…
Add table
Add a link
Reference in a new issue