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

If by 'add include path to rosmake' you mean you want to add a path to your compiler's include path, just add an include_directories statement to your CMakeLists.txt file:

...
rosbuild_init()
...
include_directories(/path/to/vtk-5.8)
...
rosbuild_add_executable(your_app src/your_app.cpp)
...
target_link_libraries(your_app somelib otherlib)
...

Note though that in general, using absolute paths is not recommended. It seems there is a FindVTK.cmake, so `find_package(VTK ..) would be better.