ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In your manifest.xml you can export required flags, e.g. <export> <cpp lflags="-lGL -lglut" /> </export>
Also in your CMakeLists.txt you could add target_link_libraries(yourprogram GL glut)
or
link_libraries(GL glut)
2 | differentiate library from executable. |
In If you're writing a library which will be used from another package in your manifest.xml you can should export required flags, e.g.
<export>
<cpp lflags="-lGL -lglut" />
</export>
Also For the a binary in your CMakeLists.txt you could add
target_link_libraries(yourprogram GL glut)
or
link_libraries(GL glut)