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 error explains itself reasonably well:

catkin_add_executable_with_gtest() must be called after catkin_package()

In your CMakeLists.txt, you need to call catkin_package() before you call catkin_add_executable_with_gtest().

It looks like the tutorial you're following is missing this step (but it's included in the author's sample repository)