-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (53 loc) · 1.49 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
cmake_minimum_required(VERSION 3.5)
project(objects_to_csv)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(autoware_auto_perception_msgs REQUIRED)
find_package(tier4_perception_msgs REQUIRED)
find_package(autoware_perception_msgs REQUIRED)
include_directories(include)
# Add executable
add_executable(tracked_objects_to_csv src/trackedobjectstocsv.cpp)
add_executable(detected_objects_to_csv src/detectedobjectstocsv.cpp)
add_executable(detected_objects_with_feature_to_csv src/detectedobjectswithfeaturetocsv.cpp)
add_executable(tracked_objects_to_multiple_csv src/trackedobjectstomultiplecsv.cpp)
# Link libraries
ament_target_dependencies(tracked_objects_to_csv
rclcpp
autoware_auto_perception_msgs
autoware_perception_msgs
sensor_msgs
)
ament_target_dependencies(detected_objects_to_csv
rclcpp
autoware_auto_perception_msgs
sensor_msgs
)
ament_target_dependencies(detected_objects_with_feature_to_csv
rclcpp
autoware_auto_perception_msgs
tier4_perception_msgs
sensor_msgs
)
ament_target_dependencies(tracked_objects_to_multiple_csv
rclcpp
autoware_auto_perception_msgs
autoware_perception_msgs
sensor_msgs
)
# Install targets
install(TARGETS
tracked_objects_to_csv
detected_objects_to_csv
detected_objects_with_feature_to_csv
tracked_objects_to_multiple_csv
DESTINATION lib/${PROJECT_NAME}
)
install(DIRECTORY
launch/
DESTINATION share/${PROJECT_NAME}/launch
)
ament_package()