cmake – FFmpeg find_package not found

CMake cannot find FFmpeg even though everything is right setup. I used vcpkg to install ffmpeg
I can’t find any information to setup ffmpeg with CMake. I’m on Windows 10 with Visual Studio.

Get findFFMPEG and put in ffmpeg folder but doesn’t solve the issue. change the folder name to
FFMPEG capital letters but still doesn’t solve the issue.

add_executable (CMakeProject1 "Source/Main.cpp" "Source/SDL2_Init.cpp" "Header/SDL2_Init.h")

target_include_directories(CMakeProject1 PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Header")

find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
find_package(SDL2_ttf REQUIRED)
find_package(SDL2_mixer REQUIRED)
find_package(FFMPEG REQUIRED)

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET CMakeProject1 PROPERTY CXX_STANDARD 20)
endif()

Read more here: Source link