Skip to content
Snippets Groups Projects

Fix the roslaunch_add_file_check bug that produced the filename too long problem

Merged Jon Azpiazu requested to merge fix_roslaunch_macro into master
1 file
+ 13
3
Compare changes
  • Side-by-side
  • Inline
+ 13
3
@@ -16,11 +16,21 @@ if(CATKIN_ENABLE_TESTING)
@@ -16,11 +16,21 @@ if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS
find_package(catkin REQUIRED COMPONENTS
roslaunch
roslaunch
)
)
roslaunch_add_file_check(
EOT
$(find . -type f -name "*.launch")
)
## 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()
endif()
EOT
EOT
 
fi
fi
fi
fi
done
done
Loading