Updating CmakeList.txt to work with imu and cmd

This commit is contained in:
Jérôme BEDIER 2025-11-18 14:07:43 +01:00
parent 70e8b5326d
commit 5e9a2e0f29
1 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,20 @@ find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED) find_package(sensor_msgs REQUIRED)
find_package(geometry_msgs REQUIRED) find_package(geometry_msgs REQUIRED)
#imu_sub
add_executable(imu_sub src/imu_sub.cpp)
ament_target_dependencies(imu_sub rclcpp sensor_msgs)
#cmd_pub
add_executable(cmd_pub src/cmd_pub.cpp)
ament_target_dependencies(cmd_pub rclcpp geometry_msgs)
#install
install(TARGETS
imu_sub
cmd_pub
DESTINATION lib/${PROJECT_NAME})
if(BUILD_TESTING) if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED) find_package(ament_lint_auto REQUIRED)
# the following line skips the linter which checks for copyrights # the following line skips the linter which checks for copyrights