ZLMediaKit/cmake/FindSWRESAMPLE.cmake

17 lines
507 B
CMake
Raw Permalink Normal View History

2021-06-29 17:44:35 +08:00
find_path(SWRESAMPLE_INCLUDE_DIR
2022-05-28 10:18:40 +08:00
NAMES libswresample/swresample.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
2021-06-29 17:44:35 +08:00
find_library(SWRESAMPLE_LIBRARY
2022-05-28 10:18:40 +08:00
NAMES swresample
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
2021-06-29 17:44:35 +08:00
set(SWRESAMPLE_LIBRARIES ${SWRESAMPLE_LIBRARY})
set(SWRESAMPLE_INCLUDE_DIRS ${SWRESAMPLE_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SWRESAMPLE DEFAULT_MSG SWRESAMPLE_LIBRARY SWRESAMPLE_INCLUDE_DIR)