-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (49 loc) · 988 Bytes
/
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
cmake_minimum_required(VERSION 3.0.2)
project(yolo_ekf)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
sensor_msgs
dynamic_reconfigure
image_transport
image_geometry
cv_bridge
darknet_ros_msgs
darknet_ros
message_generation
message_filters
)
find_package(OpenCV REQUIRED)
generate_dynamic_reconfigure_options(
cfg/YoloEKF.cfg
)
# generate_messages(
# DEPENDENCIES
# std_msgs
# )
catkin_package(
DEPENDS OpenCV std_msgs roscpp darknet_ros_msgs
)
include_directories(
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_executable(${PROJECT_NAME}
src/yolo_ekf.cpp
src/yolo_ekf_node.cpp
src/box_ekf.cpp
)
add_dependencies(${PROJECT_NAME}
${PROJECT_NAME}_gencfg
${catkin_EXPORTED_TARGETS}
)
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
install(
TARGETS
${PROJECT_NAME}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)