mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
27 lines
663 B
Text
27 lines
663 B
Text
|
## 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()
|