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

Fixed! After reading commentary from @Solrac3589

add_dependencies function is working either for creating executable, but also for libraries.

That is to say I add just one line in my CMakeLists under add_libraries like this:

add_library(ndt_func SHARED library/ndt_func.cpp)
add_dependencies(ndt_func ${catkin_EXPORTED_TARGETS})