forked from szp7788196/jetson_xavier_nx_stereo_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
97 lines (85 loc) · 2.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
cmake_minimum_required(VERSION 3.10)
project(stereo)
set(CMAKE_BUILD_TYPE Release)
# set(JPEG_DIR /usr/local/lib)
############################################################
# Create a library
############################################################
find_package(OpenCV REQUIRED)
#Generate the static library from the library sources
add_library(stereo SHARED
cmd_parse/cmd_parse.c
cssc132/cssc132.c
handler/handler.c
led/led.c
stereo/stereo.c
mpu9250/mpu9250.c
net/net.c
serial/serial.c
sync/sync.c
sync_module/sync_module.c
ub482/ub482.c
# ui3240/ui3240.c
m3st130h/m3st130h.c
fifo/ringbuf.c
can/can.c
odb2/odb2.c
)
target_link_libraries(stereo
m
# ${JPEG_DIR}/libjpeg.a
png
pthread
# ueye_api
dvp
hzd
)
# target_include_directories(stereo
# PUBLIC
# ${PROJECT_SOURCE_DIR}/serial
# ${PROJECT_SOURCE_DIR}/net
# ${PROJECT_SOURCE_DIR}/ub482
# ${PROJECT_SOURCE_DIR}/stereo
# ${PROJECT_SOURCE_DIR}/cmd_parse
# ${PROJECT_SOURCE_DIR}/mpu9250
# ${PROJECT_SOURCE_DIR}/ui3240
# ${PROJECT_SOURCE_DIR}/cssc132
# ${PROJECT_SOURCE_DIR}/sync_module
# ${PROJECT_SOURCE_DIR}/led
# ${PROJECT_SOURCE_DIR}/sync
# ${PROJECT_SOURCE_DIR}/interface
# )
include_directories(
# ${UEYE_INCLUDE_DIR}
${OpenCV_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/cmd_parse
${PROJECT_SOURCE_DIR}/cssc132
${PROJECT_SOURCE_DIR}/handler
${PROJECT_SOURCE_DIR}/led
${PROJECT_SOURCE_DIR}/stereo
${PROJECT_SOURCE_DIR}/mpu9250
${PROJECT_SOURCE_DIR}/net
${PROJECT_SOURCE_DIR}/serial
${PROJECT_SOURCE_DIR}/sync
${PROJECT_SOURCE_DIR}/sync_module
${PROJECT_SOURCE_DIR}/ub482
# ${PROJECT_SOURCE_DIR}/ui3240
${PROJECT_SOURCE_DIR}/m3st130h
${PROJECT_SOURCE_DIR}/fifo
${PROJECT_SOURCE_DIR}/can
${PROJECT_SOURCE_DIR}/odb2
)
############################################################
# Create an executable
############################################################
# Add an executable with the above sources
add_executable(sdk
main.cpp
# main_read.c
)
# link the new hello_library target with the stereo target
target_link_libraries(sdk
PRIVATE
stereo
${OpenCV_LIBRARIES}
)