Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,12 @@ find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/RslidarPacket.msg"
DEPENDENCIES builtin_interfaces std_msgs
)
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
# the following line skips the linter which checks for copyrights
# uncomment the line when a copyright and license is not present in all source files
#set(ament_cmake_copyright_FOUND TRUE)
# the following line skips cpplint (only works in a git repo)
# uncomment the line when this package is not in a git repo
#set(ament_cmake_cpplint_FOUND TRUE)
# skip copyright and license
set(ament_cmake_copyright_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
endif()

Expand Down
14 changes: 7 additions & 7 deletions ros1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ find_package(catkin REQUIRED COMPONENTS
std_msgs
sensor_msgs
message_generation
)
)

add_message_files(FILES
RslidarPacket.msg
)
)

generate_messages(DEPENDENCIES
generate_messages(DEPENDENCIES
std_msgs
sensor_msgs
)
)

catkin_package(CATKIN_DEPENDS
std_msgs
catkin_package(CATKIN_DEPENDS
std_msgs
sensor_msgs
message_runtime
)
)
2 changes: 1 addition & 1 deletion ros2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/RslidarPacket.msg"
DEPENDENCIES builtin_interfaces std_msgs
)
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down