|
1 | 1 | cmake_minimum_required(VERSION 2.8.3) |
2 | 2 | project(am_utils) |
3 | 3 |
|
| 4 | +add_compile_options(-std=c++11) |
| 5 | + |
4 | 6 | find_package(catkin REQUIRED COMPONENTS |
| 7 | + brain_box_msgs |
| 8 | + control_toolbox |
| 9 | + dji_sdk |
| 10 | + image_transport |
| 11 | + genmsg |
5 | 12 | geometry_msgs |
6 | 13 | nav_msgs |
7 | | - genmsg |
8 | | - std_msgs |
9 | | - sensor_msgs |
10 | 14 | rosconsole |
| 15 | + roscpp |
| 16 | + rosbag |
11 | 17 | rostime |
12 | | - brain_box_msgs |
| 18 | + sensor_msgs |
| 19 | + std_msgs |
| 20 | + tf2 |
| 21 | + tf2_ros |
13 | 22 | ) |
14 | 23 |
|
15 | | -generate_messages( DEPENDENCIES std_msgs nav_msgs geometry_msgs sensor_msgs) |
16 | | - |
17 | | -set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}") |
| 24 | +find_package(OpenCV REQUIRED) |
| 25 | +find_package(Eigen3 REQUIRED) |
18 | 26 |
|
19 | 27 | catkin_package( |
20 | | - INCLUDE_DIRS include include/am_utils |
| 28 | + INCLUDE_DIRS include include/am_utils include/vb_util_lib |
21 | 29 | LIBRARIES am_utils |
22 | 30 | CATKIN_DEPENDS |
23 | | - geometry_msgs |
24 | | - nav_msgs |
25 | | - std_msgs |
26 | | - sensor_msgs |
27 | | - brain_box_msgs |
| 31 | + brain_box_msgs |
| 32 | + control_toolbox |
| 33 | + dji_sdk |
| 34 | + image_transport |
| 35 | + genmsg |
| 36 | + geometry_msgs |
| 37 | + nav_msgs |
| 38 | + rosconsole |
| 39 | + roscpp |
| 40 | + rosbag |
| 41 | + rostime |
| 42 | + sensor_msgs |
| 43 | + std_msgs |
| 44 | + tf2 |
| 45 | + tf2_ros |
28 | 46 | ) |
29 | 47 |
|
| 48 | +# TODO: why is the explicit eigen3 include |
30 | 49 | include_directories( |
31 | 50 | include |
32 | 51 | ${catkin_INCLUDE_DIRS} |
| 52 | + ${Eigen3_INCLUDE_DIRS} |
| 53 | + /usr/include/eigen3 |
33 | 54 | ) |
34 | 55 |
|
35 | | -install(DIRECTORY include/${PROJECT_NAME}/ |
36 | | - DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}) |
37 | | - |
38 | 56 | add_library(am_utils |
39 | | - src/am_bag_utils.cpp |
40 | | - src/am_network_utils.cpp |
41 | | - src/am_onlinestatistics.cpp |
42 | | - src/am_operator_utils.cpp |
43 | | - src/am_statistics.cpp |
44 | | - src/cansocket.cpp |
45 | | - src/fcu_mode_type.cpp |
46 | | - src/flightplan_type.cpp |
47 | | - src/latency_wrapper.cpp |
48 | | - src/message_util.cpp |
49 | | - src/mission_cmd_type.cpp |
50 | | - src/operator_msg_type.cpp |
51 | | - src/topics.cpp |
52 | | - ) |
53 | | - |
54 | | -target_link_libraries(am_utils ${catkin_LIBRARIES}) |
55 | | - |
56 | | -add_dependencies(am_utils brain_box_msgs_generate_messages_cpp) |
57 | | - |
58 | | -install(TARGETS am_utils |
| 57 | + src/am_utils/am_bag_utils.cpp |
| 58 | + src/am_utils/am_network_utils.cpp |
| 59 | + src/am_utils/am_onlinestatistics.cpp |
| 60 | + src/am_utils/am_operator_utils.cpp |
| 61 | + src/am_utils/am_statistics.cpp |
| 62 | + src/am_utils/cansocket.cpp |
| 63 | + src/am_utils/fcu_mode_type.cpp |
| 64 | + src/am_utils/flightplan_type.cpp |
| 65 | + src/am_utils/latency_wrapper.cpp |
| 66 | + src/am_utils/message_util.cpp |
| 67 | + src/am_utils/mission_cmd_type.cpp |
| 68 | + src/am_utils/operator_msg_type.cpp |
| 69 | + src/vb_util_lib/control_util.cpp |
| 70 | + src/vb_util_lib/object_state.cpp |
| 71 | + src/vb_util_lib/kinematics.cpp |
| 72 | + src/vb_util_lib/kinematics_list.cpp |
| 73 | + src/vb_util_lib/current_enu_kinematics.cpp |
| 74 | + src/vb_util_lib/am_param.cpp |
| 75 | + src/vb_util_lib/gis_entity.cpp |
| 76 | + src/vb_util_lib/gis_util.cpp |
| 77 | + src/vb_util_lib/jsoncpp.cpp |
| 78 | + src/vb_util_lib/json_utils.cpp |
| 79 | + src/vb_util_lib/gs_json_utils.cpp |
| 80 | + src/vb_util_lib/am_util.cpp |
| 81 | + src/vb_util_lib/key_value_stamped.cpp |
| 82 | + src/vb_util_lib/param_update.cpp |
| 83 | + src/vb_util_lib/gps_util.cpp |
| 84 | + src/vb_util_lib/location_source.cpp |
| 85 | + src/vb_util_lib/am_geometry.cpp |
| 86 | + src/vb_util_lib/topics.cpp |
| 87 | + src/vb_util_lib/task_trigger.cpp |
| 88 | + src/vb_util_lib/time_util.cpp |
| 89 | + src/vb_util_lib/ftp_request.cpp |
| 90 | + src/vb_util_lib/ftp_response.cpp |
| 91 | + src/vb_util_lib/file_spec.cpp |
| 92 | + src/vb_util_lib/message.cpp |
| 93 | + src/vb_util_lib/msg_head.cpp |
| 94 | + src/vb_util_lib/msg_data.cpp |
| 95 | + src/vb_util_lib/dji_challenge_util.cpp |
| 96 | + src/vb_util_lib/am_histogram.cpp |
| 97 | + src/vb_util_lib/row_marker.cpp |
| 98 | + src/vb_util_lib/rc_controls.cpp |
| 99 | + src/vb_util_lib/i2c.cpp |
| 100 | + src/vb_util_lib/circ_list.cpp |
| 101 | + src/vb_util_lib/time_synchronizer.cpp |
| 102 | + src/vb_util_lib/GeometryPoseExtractor.cpp |
| 103 | + src/vb_util_lib/trajectory_data.cpp |
| 104 | + src/vb_util_lib/transformer.cpp |
| 105 | + src/vb_util_lib/rotate.cpp |
| 106 | + src/vb_util_lib/imu_class.cpp |
| 107 | + src/vb_util_lib/am_heartbeat.cpp |
| 108 | + src/vb_util_lib/vb_main.cpp |
| 109 | + src/vb_util_lib/bag_logger.cpp) |
| 110 | + |
| 111 | +target_link_libraries(am_utils ${catkin_LIBRARIES} ${OpenCV_LIBRARIES}) |
| 112 | + |
| 113 | +install(TARGETS am_utils |
59 | 114 | LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} |
60 | 115 | ) |
| 116 | + |
| 117 | +install(DIRECTORY include/am_utils/ |
| 118 | + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}) |
| 119 | + |
| 120 | +install(DIRECTORY include/vb_util_lib/ |
| 121 | + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}) |
| 122 | + |
| 123 | + |
0 commit comments