2014-05-22 03:07:17 -07:00
|
|
|
project(obs-libfdk)
|
|
|
|
|
2014-09-10 04:47:50 -07:00
|
|
|
if(DISABLE_LIBFDK)
|
|
|
|
message(STATUS "Libfdk support disabled")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2014-05-22 03:07:17 -07:00
|
|
|
find_package(Libfdk QUIET)
|
2014-09-10 04:47:50 -07:00
|
|
|
if(NOT LIBFDK_FOUND AND ENABLE_LIBFDK)
|
|
|
|
message(FATAL_ERROR "Libfdk not found but set as enabled")
|
|
|
|
elseif(NOT LIBFDK_FOUND)
|
2014-05-22 03:07:17 -07:00
|
|
|
message(STATUS "Libfdk not found - obs-libfdk plugin disabled")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(${LIBFDK_INCLUDE_DIRS})
|
|
|
|
add_definitions(${LIBFDK_DEFINITIONS})
|
|
|
|
|
|
|
|
set(obs-libfdk_SOURCES
|
|
|
|
obs-libfdk.c)
|
|
|
|
|
|
|
|
add_library(obs-libfdk MODULE
|
|
|
|
${obs-libfdk_SOURCES})
|
|
|
|
target_link_libraries(obs-libfdk
|
|
|
|
libobs
|
|
|
|
${LIBFDK_LIBRARIES})
|
|
|
|
|
2014-08-19 05:24:59 -07:00
|
|
|
install_obs_plugin_with_data(obs-libfdk data)
|