代码拉取完成,页面将自动刷新
cmake_minimum_required (VERSION 2.8)
set( APPNAME app )
set(CROSS_COMPILE arm-openwrt-linux)
set(CMAKE_C_COMPILER ${CROSS_COMPILE}-gcc)
set(CMAKE_CXX_COMPILER ${CROSS_COMPILE}-g++)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
project( ${APPNAME} )
message(${CROSS_COMPILE})
#add_definitions(-DDISP_V2)
add_definitions(-Dhi3518e -DHI_RELEASE -DHI_XXXX)
add_definitions(-DCHIP_ID=CHIP_HI3518E_V200 -DHICHIP=0x3518E200)
add_definitions(-Dhi3518ev200 -DHI_ACODEC_TYPE_INNER)
add_definitions(-DSENSOR_TYPE=OMNIVISION_OV9732_DC_720P_30FPS)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/rtsp/common)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/libs)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src/rtsp DIR_SRCS)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src/rtsp/common DIR_SRCS)
add_executable(${APPNAME} ${DIR_SRCS})
set (HISI_SENSOR_LIBS
isp _hiae _hiawb _hiaf _hidefog
pthread m dl
ive md mpi tde upvqe dnvqe VoiceEngine
sns_ov9732
)
set (HISI_MPI_LIBS ive md mpi)
set (HISI_AUDIO_LIBS upvqe dnvqe VoiceEngine)
target_link_libraries(${APPNAME} ${HISI_SENSOR_LIBS})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。