Ask Your Question

Revision history [back]

The target_link_libraries tag is used to add the library dependencies of a specific binary (executable or library) that is built in the package, not the package as a whole.

If your trying to use OpenCV 2 on ROS kinetic it's already included, adding a dependency on the cv_bridge package should be all you need to do. Then you just need to add the correct header files and start using OpenCV in your code.