Fixed FFMPEG not found error

FFmpeg doesn't support find_package in CMake, instead you have to write this for it to work
This commit is contained in:
dxbstyle 2022-10-26 18:24:17 +02:00 committed by GitHub
parent 4e3254e843
commit 2b5657d36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,8 @@ find_package(GLUT REQUIRED)
find_package(ZLIB REQUIRED)
find_package(SDL REQUIRED)
find_package(LZ4 REQUIRED)
find_package(FFMPEG REQUIRED)
find_path(AVCODEC_INCLUDE_DIR libavcodec/avcodec.h)
find_library(AVCODEC_LIBRARY avcodec)
find_package(FreeImage REQUIRED)
@ -218,4 +219,4 @@ check_function_exists(XSetIOErrorExitHandler HAVE_XSETIOERROREXITHANDLER)
if(HAVE_XSETIOERROREXITHANDLER)
add_compile_definitions(HAVE_XSETIOERROREXITHANDLER=1)
endif()
endif()