FindAVCODEC.cmake 395 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
find_path(AVCODEC_INCLUDE_DIR
  NAMES libavcodec/avcodec.h
  PATHS $ENV{HOME}/ffmpeg/include)

find_library(AVCODEC_LIBRARY
  NAMES avcodec
  PATHS $ENV{HOME}/ffmpeg/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)