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

I would try in the CMakeLists:

add_executable(node_name src/node_code.cpp ...)
add_library(mylib lib/staticlib2add.cpp)
target_link_libraries(mylib ${OpenCV_LIBS} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ...)
target_link_libraries(node_name mylib ${OpenCV_LIBS} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ...)