mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 16:47:28 +08:00
15 lines
395 B
CMake
Executable File
15 lines
395 B
CMake
Executable File
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)
|