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 convention is that you should link all dependencies needed to a target. On Windows that is even required.

Without known what exactly is in your library / executable I can't answer the question.

If the source files of your library include headers from dependencies found with find_package(catkin REQUIRED COMPONENTS ...) you should link ${catkin_LIBRARIES} to your libraries. And if the source files of your executable include headers from dependencies found with find_package(catkin REQUIRED COMPONENTS ...) (and not transitively through headers from your library) you should link ${catkin_LIBRARIES} to your executable.