#引入include 即头文件
include_directories(libs/include)
#设置so的路径
set(ffmpeg_DIR ${CMAKE_SOURCE_DIR}/libs/armeabi-v7a)
add_library( avcodec-57
SHARED
IMPORTED)
set_target_properties( avcodec-57
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libavcodec-57.so)
add_library(avdevice-57
SHARED
IMPORTED)
set_target_properties(avdevice-57
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libavdevice-57.so)
add_library( avfilter-6
SHARED
IMPORTED)
set_target_properties( avfilter-6
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libavfilter-6.so)
add_library( avformat-57
SHARED
IMPORTED)
set_target_properties( avformat-57
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libavformat-57.so)
add_library( avutil-55
SHARED
IMPORTED)
set_target_properties( avutil-55
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libavutil-55.so)
add_library(postproc-54
SHARED
IMPORTED)
set_target_properties(postproc-54
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libpostproc-54.so)
add_library( swresample-2
SHARED
IMPORTED)
set_target_properties( swresample-2
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libswresample-2.so)
add_library( swscale-4
SHARED
IMPORTED)
set_target_properties( swscale-4
PROPERTIES IMPORTED_LOCATION
${ffmpeg_DIR}/libswscale-4.so)
CMakeLists.txt-----配置so文件
最新推荐文章于 2024-05-20 22:57:10 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)