Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are multiple problems from a first look at the CMake snippet:

  • Your target_link_libraries() line contains ${std_msgs} but that should be ${std_msgs_LIBRARIES}.
  • You can't pass a target name like test_lib to ament_target_dependencies(). You need `target_link_libraries(test_node test_lib) for that.
  • The install rule for the headers is wrong. Either remove the trailing slash from the DIRECTORY argument or change the DESTINATION to include/${PROJECT_NAME}.