-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (47 loc) · 1.24 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
cmake_minimum_required(VERSION 3.15)
project(rwr-ros2-examples)
## Use C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
## By adding -Wall and -Werror, the compiler does not ignore warnings anymore,
## enforcing cleaner code.
add_definitions(-Wall)
find_package(ament_cmake REQUIRED)
find_package(rclpy REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
## Find system libraries
find_package(tf2_eigen REQUIRED)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
# Set because Boost is an internal dependency, not transitive.
${fmt_INCLUDE_DIRS}
)
add_executable(joy_to_twist
src/joy_to_twist.cpp
)
ament_target_dependencies(joy_to_twist rclcpp std_msgs sensor_msgs tf2_eigen)
#############
## Install ##
#############
# Mark executables and/or libraries for installation
install(TARGETS
joy_to_twist
DESTINATION lib/${PROJECT_NAME}
)
install(PROGRAMS
scripts/franka_pose_cmd_publisher.py
DESTINATION lib/${PROJECT_NAME}
)
# install the launch file
install(DIRECTORY
launch
DESTINATION share/${PROJECT_NAME}
)
ament_package()