Applied patch to add Eclipse support, #2781.
This commit is contained in:
parent
932647a5fd
commit
ac67543dc1
|
@ -24,6 +24,7 @@ clean:
|
|||
-cd build && make clean
|
||||
rm -rf msg_gen srv_gen msg/cpp msg/lisp msg/oct msg/java srv/cpp srv/lisp srv/oct srv/java src/$(PACKAGE_NAME)/msg src/$(PACKAGE_NAME)/srv
|
||||
rm -rf build
|
||||
rm .project .cproject
|
||||
|
||||
# All other targets are just passed through
|
||||
test: all
|
||||
|
@ -35,4 +36,16 @@ test-future: all
|
|||
gcoverage: all
|
||||
cd build && make $@
|
||||
|
||||
eclipse-project:
|
||||
mv Makefile Makefile.ros
|
||||
cmake -G"Eclipse CDT4 - Unix Makefiles" -Wno-dev .
|
||||
rm Makefile
|
||||
rm CMakeCache.txt
|
||||
rm -rf CMakeFiles
|
||||
mv Makefile.ros Makefile
|
||||
mv .project .project-cmake
|
||||
awk -f $(shell rospack find mk)/eclipse.awk .project-cmake > .project
|
||||
rm .project-cmake
|
||||
|
||||
|
||||
include $(shell rospack find mk)/buildtest.mk
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
//{
|
||||
if(index($0,"VERBOSE=1")>0) {
|
||||
printf "\t\t\t\t\t<value>VERBOSE=1|"
|
||||
printf "ROS_ROOT="ENVIRON["ROS_ROOT"]"|"
|
||||
printf "ROS_PACKAGE_PATH="ENVIRON["ROS_PACKAGE_PATH"]"|"
|
||||
printf "PYTHONPATH="ENVIRON["PYTHONPATH"]"|"
|
||||
printf "PATH="ENVIRON["PATH"]"|"
|
||||
print "</value>"
|
||||
} else {
|
||||
print $0
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue