ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The package providing the CMake macro ament_add_gtest is ament_cmake_gtest

This is the one to find_package in the CMakeLists and to add as a test_depend in the package.xml

The package providing the CMake macro ament_add_gtest is ament_cmake_gtest

This is the one to find_package in the CMakeLists and to add as a test_depend in the package.xml

Edit:

I already put the ament_cmake_gtest in the package.xml

Did you also change the name in the CMakeLists as suggested above?

Replace

find_package(ament_gtest REQUIRED)

With

find_package(ament_cmake_gtest REQUIRED)

and i still get the error.

What error do you get after the change?

maybe i have something missing in the ros install, i only installed eloquent-ros-core and eloquent-ros-base.

ros_core provides ament_cmake-gtest so there shouldnt be a need to install any additional package