It uses the CMake variable \${PROJECT_NAME}_RUN_DEPENDS which is available after you invoked catkin_package() (or catkin_package_xml()). It provides all the keys for run_depend from the package.xml file.