set(ffmpeg_DIR "D:/wyc/library/ffmpeg/${libraryType}") include_directories("${ffmpeg_DIR}/include") set(ffmpeg_LibNames avcodec.lib avdevice.lib avfilter.lib avformat.lib avutil.lib postproc.lib swresample.lib swscale.lib) foreach (ffmpeg_LibName ${ffmpeg_LibNames}) list(APPEND ffmpeg_Libs "${ffmpeg_DIR}/lib/${ffmpeg_LibName}") endforeach () function(_install_3rdParty_ffmpeg targetRootDirPath) set(basePath "${targetRootDirPath}/3rdParty/ffmpeg") extract_suffix("${basePath}/include" "${ffmpeg_DIR}/include" .h) extract_suffix("${basePath}/dllLinkLibs" "${ffmpeg_DIR}/lib" .lib) extract_suffix("${basePath}/dlls" "${ffmpeg_DIR}/bin" .dll) endfunction()