-
Notifications
You must be signed in to change notification settings - Fork 39
/
CMakeLists.txt
76 lines (66 loc) · 1.73 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
cmake_minimum_required(VERSION 3.8)
project(ultralytics_ros)
set(CMAKE_CXX_STANDARD 17)
if(NOT DEFINED CMAKE_SUPPRESS_DEVELOPER_WARNINGS)
set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE INTERNAL "No dev warnings")
endif()
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclpy REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(std_msgs REQUIRED)
find_package(vision_msgs REQUIRED)
find_package(visualization_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(cv_bridge REQUIRED)
find_package(image_geometry REQUIRED)
find_package(message_filters REQUIRED)
find_package(pcl_conversions REQUIRED)
find_package(pcl_ros REQUIRED)
find_package(tf2_eigen REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(OpenCV REQUIRED)
find_package(PCL REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/YoloResult.msg"
DEPENDENCIES
sensor_msgs
std_msgs
vision_msgs
)
include_directories(include)
add_executable(tracker_with_cloud_node src/tracker_with_cloud_node.cpp)
ament_target_dependencies(tracker_with_cloud_node
rclcpp
geometry_msgs
sensor_msgs
std_msgs
vision_msgs
visualization_msgs
cv_bridge
image_geometry
message_filters
pcl_ros
tf2_eigen
tf2_ros
OpenCV
PCL
)
rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(tracker_with_cloud_node "${cpp_typesupport_target}")
install(TARGETS
tracker_with_cloud_node
DESTINATION lib/${PROJECT_NAME}
)
install(PROGRAMS
script/tracker_node.py
DESTINATION lib/${PROJECT_NAME}
)
install(DIRECTORY
launch
rviz2
DESTINATION share/${PROJECT_NAME}
)
ament_package()