ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Your approach is going to run into some issues.
rospack exports are manually written in your manifest.xml. They are the include directories which you need to export to packages which depend on your package. This is not necessarily all include directories needed to compile the package itself.
If you need include directories in your own package you should be using include_directories in your CMakeLists.txt
And the correct thing to do is to add the target you want in cmake, and then have the makefile invoke cmake && make mytarget like cmake.mk does.