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

I think I get it.

Among those multiple files, only one file has a main function.

We specify the other files , because they contain the things (variables/functions) needed in the main function.

So It is okay to have multiple files in one add_executable, as long as only one file has the main function.