ZLMediaKit/cmake/FindAVCODEC.cmake

13 lines
331 B
CMake
Raw Normal View History

2017-05-08 18:03:43 +08:00
find_path(AVCODEC_INCLUDE_DIR
NAMES libavcodec/avcodec.h)
find_library(AVCODEC_LIBRARY
NAMES avcodec)
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)