-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathCMakeLists.txt
42 lines (35 loc) · 1.51 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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} )
set(CMAKE_C_FLAGS "-std=gnu99")
#add_definitions(-DDISP_V2)
#add_definitions(-fsanitize=address -fno-omit-frame-pointer)
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/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/rtsp)
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/ DIR_SRCS)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src/config DIR_SRCS)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src/rtsp 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})