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

This sort of error indicates that you haven't defined a cmake target called my_awesome_library.

The name of your cmake target is the first argument to add_executable(...) or add_library(...).

It may be useful to edit your question to include your full CMakeLists.txt if you would like more help.

This sort of error indicates that you haven't defined a cmake target called my_awesome_library.

The name of your cmake target is the first argument to add_executable(...) or add_library(...).

It may be useful to edit your question to include your full CMakeLists.txt if you would like more help.

EDIT

Your first CMake target is name wificamp; therefore your linking command should be:

target_link_libraries(wificamp ${OpenCV_LIBRARIES})

You can also combine this with the linking command that links your exectuable against the catkin libraries:

target_link_libraries(wificamp ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})