Skip to content
Snippets Groups Projects
Commit 638b09db authored by Jon Azpiazu's avatar Jon Azpiazu
Browse files

Merge branch 'fix_roslaunch_macro' into 'master'

Fix the roslaunch_add_file_check bug that produced the filename too long problem

See merge request tecnalia_robotics-public/gitlab_templates!6
parents 13e199d9 bc7531fe
No related branches found
No related tags found
No related merge requests found
......@@ -16,11 +16,21 @@ if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS
roslaunch
)
roslaunch_add_file_check(
$(find . -type f -name "*.launch")
)
EOT
## The roslaunch_add_file_check macro supports as parameter either a folder or a single launchfile
## Here we call the macro for each of the launchfiles in the package
for launchfile in $(find . -type f -name "*.launch") ; do
cat <<EOT >> CMakeLists.txt
roslaunch_add_file_check(${launchfile})
EOT
done
## Close if(CATKIN_ENABLE_TESTING)
cat <<EOT >> CMakeLists.txt
endif()
EOT
fi
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment