video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-12-30 d9b84f5a9ea0adac7ee9c008cb4eef00da862a3d
update
1个文件已修改
9 ■■■■ 已修改文件
CMakeLists.txt 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CMakeLists.txt
@@ -25,11 +25,7 @@
    ${CMAKE_SOURCE_DIR}/csrc/gpu-conv
)
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda)
include_directories(/usr/local/cuda/include)
find_package(CUDA QUIET REQUIRED)
link_directories(/usr/local/cuda/lib64 ${CMAKE_SOURCE_DIR}/csrc/thirdparty/gb28181/lib)
link_directories(${CMAKE_SOURCE_DIR}/csrc/thirdparty/gb28181/lib)
set(CMAKE_LIBRARY_PATH ${CMAKE_SOURCE_DIR}/csrc/thirdparty/ffmpeg/lib ${CMAKE_LIBRARY_PATH})
    find_library(avutil NAMES libavutil.a )
@@ -52,8 +48,7 @@
file(GLOB_RECURSE FFMPEG_LIST ${CMAKE_SOURCE_DIR}/csrc/*.cpp)
list(APPEND FFMPEG_LIST ${CMAKE_SOURCE_DIR}/csrc/thirdparty/whereami/whereami.c)
file(GLOB_RECURSE CUDA_LIST ${CMAKE_SOURCE_DIR}/csrc/gpu-conv/*.cu)
cuda_add_library(${BIN} SHARED ${FFMPEG_LIST} ${CUDA_LIST})
add_library(${BIN} SHARED ${FFMPEG_LIST})
target_link_libraries(${BIN} ${LINK_LIB} -lz pthread dl rtspclient StreamParse)