<div>I actually prefer just using makefile projects within eclipse. <br></div><div><br></div><div>- create a new ros package</div><div>- in eclipse:</div><div>  - create anew, empty Makefile project. Turn off the default location and choose your ros package location instead.</div>
<div>- make sure you add the line 'set(CMAKE_VERBOSE_MAKEFILE true)' to your CMakeLists.txt, this helps eclipses' c++ indexer.<br></div><div>- build project, clean project then both work as you expect...with a parallel build directory.</div>
<div><br></div><div>Of course, that will only let you make the individual project. But i typically do an rosmake for the project now and then (i.e. when I download or other packages have changed alot). Usually while developing all you need is to make the single package.</div>
<div><br></div><div>The above also has the advantage in that you don't have any problems with the .project, .cproject files getting shared amongst your team. That and the fact that you can make/rosmake from a shell and build from inside eclipse without it getting mucked up.</div>
<div><br></div><div>I should probably add some notes about this to the wiki.</div><br><div class="gmail_quote">On 21 October 2010 11:31, Aditya Gadre <span dir="ltr"><<a href="mailto:agadre@vt.edu">agadre@vt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have a question about "make eclipse-project" command. I created a<br>
package which has a number of CMakeLists.txt files as follows -<br>
<br>
gps (package_dir)<br>
     - CMakeLists.txt ( with add_subdirectory(src) )<br>
     - src (directory)<br>
         - CMakeLists.txt (with add_subdirectory(gps) and<br>
add_subdirectory(node))<br>
         - gps (directory)<br>
             - CMakeLists.txt (with add_library)<br>
         - node (directory)<br>
             - CMakeLists.txt (with add_executable)<br>
<br>
When I run "rosmake gps", all CMakeFiles directories and other related<br>
CMake files are under the "build" directory as expected for an<br>
out-of-source build. However, when I run "make eclipse-project", then<br>
CMakeFiles directories, along with other CMake files are created in<br>
directories that contain CMakeLists.txt files. The ROS wiki mentions the<br>
work-around used by "make eclipse-project". Are all CMakeFiles folders<br>
created outside the build directory a result of this work-around?<br>
<br>
Thanks,<br>
- Aditya<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>Home: <a href="http://snorriheim.dnsdojo.com/">http://snorriheim.dnsdojo.com/</a><br>Yujin Robot: <a href="http://www.yujinrobot.com/">http://www.yujinrobot.com/</a><br>
Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>