rtspReceive/ffmpeg/CMakeLists.txt
2024-03-22 08:39:37 +08:00

25 lines
725 B
CMake

cmake_minimum_required(VERSION 3.4.1)
project(ffmpeg)
# set(FFMPEG_PATH ${PROJECT_SOURCE_DIR}/${ANDROID_ABI})
set(FFMPEG_PATH ${CMAKE_CURRENT_SOURCE_DIR})
add_library(ffmpeg INTERFACE)
link_directories(${FFMPEG_PATH}/libs)
target_include_directories(ffmpeg INTERFACE ${FFMPEG_PATH}/ffmpeg)
target_link_libraries(ffmpeg INTERFACE
${FFMPEG_PATH}/libs/avformat.lib
${FFMPEG_PATH}/libs/avcodec.lib
${FFMPEG_PATH}/libs/avutil.lib
${FFMPEG_PATH}/libs/swresample.lib
${FFMPEG_PATH}/libs/swscale.lib
)
# target_link_libraries(ffmpeg INTERFACE
# "${FFMPEG_PATH}/libavformat.a"
# "${FFMPEG_PATH}/libavcodec.a"
# "${FFMPEG_PATH}/libavutil.a"
# "${FFMPEG_PATH}/libswresample.a"
# "${FFMPEG_PATH}/libswscale.a"
# )