mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-29 11:01:23 +00:00
d5cf2d2ccf
While we're at it, let's also fix the invalid destructor, as well as the NVENC HEVC encoder incorrectly using H264.Level to store H265.Level.
26 lines
663 B
CMake
26 lines
663 B
CMake
## 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()
|