obs-StreamFX/components/ffmpeg/CMakeLists.txt

27 lines
663 B
Text
Raw Normal View History

## AUTOGENERATED COPYRIGHT HEADER START
# Copyright (C) NaN-NaN undefined
# AUTOGENERATED COPYRIGHT HEADER END
cmake_minimum_required(VERSION 3.26)
project("FFmpeg")
list(APPEND CMAKE_MESSAGE_INDENT "[${PROJECT_NAME}] ")
streamfx_add_component(${PROJECT_NAME})
find_package("FFmpeg"
COMPONENTS "avutil" "avcodec" "swscale"
)
if(NOT FFmpeg_FOUND)
streamfx_disable_component(${COMPONENT_TARGET} "FFmpeg is not available.")
return()
else()
target_link_libraries(${COMPONENT_TARGET}
PUBLIC
${FFMPEG_LIBRARIES}
)
target_include_directories(${COMPONENT_TARGET}
PUBLIC
${FFMPEG_INCLUDE_DIRS}
)
endif()