Skip to content

Commit

Permalink
KDL: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gleichdick committed May 29, 2021
1 parent 88fe7de commit 005db7c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tf2_kdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ find_package(tf2 REQUIRED)
find_package(tf2_ros REQUIRED)

ament_python_install_package(${PROJECT_NAME}
PACKAGE_DIR src/${PROJECT_NAME})
PACKAGE_DIR src/${PROJECT_NAME})

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION include/${PROJECT_NAME}
DESTINATION include/${PROJECT_NAME}
)

# TODO(ahcorde): Port python once https://github.com/ros2/orocos_kinematics_dynamics/pull/4 is merged
Expand All @@ -31,9 +31,16 @@ install(DIRECTORY include/${PROJECT_NAME}/

if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
find_package(ament_lint_auto REQUIRED)
find_package(rclcpp REQUIRED)
find_package(tf2_msgs REQUIRED)

# TODO(ros2/geometry2#259) Remove once headers
# are renamed to .hpp
set(ament_cmake_uncrustify_ADDITIONAL_ARGS --language CPP)
set(ament_cmake_cppcheck_LANGUAGE c++)
ament_lint_auto_find_test_dependencies()

ament_add_gtest(test_kdl test/test_tf2_kdl.cpp)
target_include_directories(test_kdl PUBLIC
include
Expand Down
2 changes: 2 additions & 0 deletions tf2_kdl/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<exec_depend>tf2_ros_py</exec_depend>

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>rclcpp</test_depend>
<test_depend>tf2_msgs</test_depend>

Expand Down

0 comments on commit 005db7c

Please sign in to comment.