You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
471B

  1. find_path(AVCODEC_INCLUDE_DIR
  2. NAMES libavcodec/avcodec.h
  3. HINTS ${FFMPEG_PATH_ROOT}
  4. PATH_SUFFIXES include)
  5. find_library(AVCODEC_LIBRARY
  6. NAMES avcodec
  7. HINTS ${FFMPEG_PATH_ROOT}
  8. PATH_SUFFIXES bin lib)
  9. set(AVCODEC_LIBRARIES ${AVCODEC_LIBRARY})
  10. set(AVCODEC_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIR})
  11. include(FindPackageHandleStandardArgs)
  12. find_package_handle_standard_args(AVCODEC DEFAULT_MSG AVCODEC_LIBRARY AVCODEC_INCLUDE_DIR)