ZLMediaKit/cmake/FindAVUTIL.cmake

17 lines
459 B
CMake
Raw Permalink Normal View History

2017-05-08 18:03:43 +08:00
find_path(AVUTIL_INCLUDE_DIR
2022-05-28 10:18:40 +08:00
NAMES libavutil/avutil.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
2017-05-08 18:03:43 +08:00
find_library(AVUTIL_LIBRARY
2022-05-28 10:18:40 +08:00
NAMES avutil
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
2017-05-08 18:03:43 +08:00
set(AVUTIL_LIBRARIES ${AVUTIL_LIBRARY})
set(AVUTIL_INCLUDE_DIRS ${AVUTIL_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(AVUTIL DEFAULT_MSG AVUTIL_LIBRARY AVUTIL_INCLUDE_DIR)