mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 15:39:13 +08:00
12 lines
506 B
CMake
12 lines
506 B
CMake
include(FindPackageHandleStandardArgs)
|
|
|
|
find_path(FFMPEG_INCLUDE_DIRS NAMES libavcodec/avcodec.h)
|
|
unset(FFMPEG_LIBRARIES)
|
|
foreach(FFMPEG_SUBLIBRARY avformat avdevice avcodec avutil swscale)
|
|
find_library(FFMPEG_lib${FFMPEG_SUBLIBRARY}_LIBRARY NAMES ${FFMPEG_SUBLIBRARY})
|
|
list(APPEND FFMPEG_LIBRARIES ${FFMPEG_lib${FFMPEG_SUBLIBRARY}_LIBRARY})
|
|
endforeach()
|
|
list(APPEND FFMPEG_LIBRARIES wsock32 ws2_32 Secur32)
|
|
|
|
find_package_handle_standard_args(FFMPEG REQUIRED_VARS FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS)
|