forked from Adlink-ROS/adlink_ros2_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (27 loc) · 851 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
cmake_minimum_required(VERSION 3.5)
project(adlink_ros2_tools)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(ament_cmake REQUIRED)
find_package(rmw REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rcutils REQUIRED)
find_package(std_msgs REQUIRED)
find_package(adlink_msgs REQUIRED)
# RoadTrip_ping
add_executable(RoundTrip_ping src/RoundTrip_ping.cpp)
ament_target_dependencies(RoundTrip_ping rclcpp std_msgs adlink_msgs)
# RoadTrip_ping
add_executable(RoundTrip_pong src/RoundTrip_pong.cpp)
ament_target_dependencies(RoundTrip_pong rclcpp std_msgs adlink_msgs)
install(TARGETS
RoundTrip_ping
RoundTrip_pong
DESTINATION lib/${PROJECT_NAME}
)
ament_package()