mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 21:29:00 +08:00
c4d48f9089
* limit windows dep libs to windows * fixing configure patch * fixing detect-openssl.patch * adapting portfile to linux * adding a linux-specific build sh * add missing endif() * bumping version * adding extra check for windows environment
14 lines
526 B
CMake
14 lines
526 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()
|
|
if(WIN32)
|
|
list(APPEND FFMPEG_LIBRARIES wsock32 ws2_32 Secur32)
|
|
endif()
|
|
|
|
find_package_handle_standard_args(FFMPEG REQUIRED_VARS FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS)
|