25 lines
614 B
CMake
25 lines
614 B
CMake
# AUTOGENERATED COPYRIGHT HEADER START
|
|
# Copyright (C) 2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
# 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::avutil
|
|
FFmpeg::avcodec
|
|
FFmpeg::swscale
|
|
)
|
|
endif()
|