ZLMediaKit/cmake/FindAVCODEC.cmake

17 lines
471 B
CMake
Raw Permalink Normal View History

2017-05-08 18:03:43 +08:00
find_path(AVCODEC_INCLUDE_DIR
2022-05-28 10:18:40 +08:00
NAMES libavcodec/avcodec.h
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES include)
2017-05-08 18:03:43 +08:00
find_library(AVCODEC_LIBRARY
2022-05-28 10:18:40 +08:00
NAMES avcodec
HINTS ${FFMPEG_PATH_ROOT}
PATH_SUFFIXES bin lib)
2017-05-08 18:03:43 +08:00
set(AVCODEC_LIBRARIES ${AVCODEC_LIBRARY})
set(AVCODEC_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(AVCODEC DEFAULT_MSG AVCODEC_LIBRARY AVCODEC_INCLUDE_DIR)