obs-studio/plugins/vlc-video/CMakeLists.txt
jp9000 d89299fc1a vlc-video: Add VLC video source
Adds the ability to add video playlists via libvlc instead of via the
media source.  This is mostly just being added as a secondary option to
the media source to reduce maintenance costs and save time.  Currently
libff cannot pause/unpause/seek, and isn't programmed to handle
playlists yet.

If VLC is installed on the computer (with the same architecture) it will
allow video playback via libVLC.  In the future, users should be able to
optionally download VLC libraries via the installer as well if they
don't want to necessarily install VLC to get the plugin working.

This plugin performs runtime linking instead of compile-time linking;
compiling VLC is not required, only its headers are required.  To
compile, clone the VLC repository and set the VLCPath cmake variable to
point to the VLC repository directory.
2016-06-06 23:53:59 -07:00

42 lines
815 B
CMake

project(vlc-video)
if(DISABLE_VLC)
message(STATUS "VLC video plugin disabled")
return()
endif()
find_package(LibVLC QUIET)
if(NOT LIBVLC_INCLUDES_FOUND AND ENABLE_VLC)
message(FATAL_ERROR "LibVLC includes not found but set as enabled")
elseif(NOT LIBVLC_INCLUDES_FOUND)
message(STATUS "LibVLC includes not found, VLC video plugin disabled")
return()
endif()
include_directories(${LIBVLC_INCLUDE_DIRS})
add_definitions(${LIBVLC_DEFINITIONS})
if(MSVC)
set(vlc-video_PLATFORM_DEPS
w32-pthreads)
endif()
set(vlc-video_HEADERS
vlc-video-plugin.h
)
set(vlc-video_SOURCES
vlc-video-plugin.c
vlc-video-source.c
)
add_library(vlc-video MODULE
${vlc-video_SOURCES}
${vlc-video_HEADERS})
target_link_libraries(vlc-video
libobs
${vlc-video_PLATFORM_DEPS})
install_obs_plugin_with_data(vlc-video data)