-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
executable file
·28 lines (20 loc) · 1.18 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
cmake_minimum_required(VERSION 2.8)
project(yolo_nnie)
#-fno-rtti -fno-exceptions
set(CMAKE_CXX_FLAGS "-std=c++11 -fomit-frame-pointer -fstrict-aliasing -ffunction-sections -fdata-sections -ffast-math -fpermissive")
set(OpenCV_DIR "third_party/opencv3/share/OpenCV/")
find_package(OpenCV REQUIRED)
message(${OpenCV_VERSION})
include_directories(./src)
include_directories(./third_party/hisi/include)
#set(mylibs mpi aacdec aacenc detail_ap dnvqe dpu_match dpu_rect dsp hdmi hdr_ap hi_cipher hiavslut hifisheyecalibrate ive md mfnr_ap mpi_photo pciv
#pos_query securec sfnr_ap svpruntime tde upvqe VoiceEngine nnie)
#find_library(COMM_LIB ${mylibs} ./third_party/hisi/lib NO_DEFAULT_PATH)
#message(${COMM_LIB})
set(LIB_DIR ${PROJECT_SOURCE_DIR}/third_party/hisi/lib)
link_directories(${LIB_DIR})
link_libraries(${COMM_LIB})
aux_source_directory(./src/ all_source)
add_executable(yolo_nnie ./sample/yolov5-nnie-sample.cpp ${all_source})
target_link_libraries(yolo_nnie ${OpenCV_LIBS} pthread dl m mpi aacdec aacenc detail_ap dnvqe dpu_match dpu_rect dsp hdmi hdr_ap hi_cipher hiavslut hifisheyecalibrate ive md mfnr_ap mpi_photo pciv
pos_query securec sfnr_ap svpruntime tde upvqe VoiceEngine nnie )