ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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})