| | |
| | | ${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 ) |
| | |
| | | |
| | | 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) |