ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
From the rosbuild wiki page:
"To build packages, use rosmake."
rosbuild is the name of the library of build-support tools; rosmake is the command you run to actually build stuff. Assuming you're developing your code just for ROS use (as distinct from implementing a ROS wrapper around some library that needn't be / isn't ROS-aware), you should do everything in CMakeLists.txt in your package's root directory. (Everything except setting the exports; that's in manifest.xml).
If you want to compile libraries, use the rosbuild_add_library
macro; see the rosbuild wikipage for some examples, and the default CMakeLists.txt that roscreate-pkg gives you.