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

Short answer (from @Dirk Thomas):

[..] the CMake file is not "machine readable". It can contain arbitrary logic in CMake and can't be read without interpreting the CMake code. The XML on the other hand can easily be read.

Longer answer: see CMakeLists.txt vs package.xml.

Short answer (from @Dirk Thomas):

[..] the CMake file is not "machine readable". It can contain arbitrary logic in CMake and can't be read without interpreting the CMake code. The XML on the other hand can easily be read.

Longer answer: see CMakeLists.txt vs package.xml.


Edit:

[..] then i need to set add_dependencies [..]

Just a note: that is only required to make sure code generation for message and service definitions is run before any of the files that include those get compiled (you need to 'help' CMake a bit to understand the dependency hierarchy there). In general: no code generation to depend on, no need for add_dependencies(..).