cmake: Allow external plugins to share libobs deps
This addition allows external cmake modules to include the same modules that are commonly distributed with the main obs-studio repo: things like FFmpeg, curl, etc.
This commit is contained in:
parent
c87d3b1f12
commit
4ed1e2f03c
6
cmake/external/FindLibobs.cmake
vendored
6
cmake/external/FindLibobs.cmake
vendored
@ -96,6 +96,12 @@ if(LIBOBS_FOUND)
|
||||
set(LIBOBS_INCLUDE_DIRS ${LIBOBS_INCLUDE_DIR} ${W32_PTHREADS_INCLUDE_DIR})
|
||||
set(LIBOBS_LIBRARIES ${LIBOBS_LIB} ${W32_PTHREADS_LIB})
|
||||
include(${LIBOBS_INCLUDE_DIR}/../cmake/external/ObsPluginHelpers.cmake)
|
||||
|
||||
# allows external plugins to easily use/share common dependencies that are often included with libobs (such as FFmpeg)
|
||||
if(NOT DEFINED INCLUDED_LIBOBS_CMAKE_MODULES)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LIBOBS_INCLUDE_DIR}/../cmake/Modules/")
|
||||
set(INCLUDED_LIBOBS_CMAKE_MODULES true)
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "Could not find the libobs library" )
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user