mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-24 11:40:37 +08:00
17 lines
471 B
CMake
17 lines
471 B
CMake
find_path(AVCODEC_INCLUDE_DIR
|
|
NAMES libavcodec/avcodec.h
|
|
HINTS ${FFMPEG_PATH_ROOT}
|
|
PATH_SUFFIXES include)
|
|
|
|
find_library(AVCODEC_LIBRARY
|
|
NAMES avcodec
|
|
HINTS ${FFMPEG_PATH_ROOT}
|
|
PATH_SUFFIXES bin lib)
|
|
|
|
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)
|