You need to tell eclipse where your sources are at then enable a "VERBOSE=1" build. Then build your project. Eclipse will parse all the compile commands looking for -I arguments. Eclipse will then add those paths to the indexer to be indexed.
There is also a CDT newsgroup that you can ask questions on. Mike Jackson On Thu, May 21, 2009 at 4:22 AM, Javier Sanz <js...@agnitio.es> wrote: > It seems either no one has solution or I did not explain myself properly. > > Well, > Thank you very much to the list anyway. > Javier Sanz > > 2009/5/19 Javier Sanz <js...@agnitio.es> >> >> Hi Everyone, >> >> I am trying to integrate Eclipse as development IDE in our repository. So >> far Cmake creates the projects and Eclipse compiles them properly. >> Unfortunately I haven't been able to register the sources and get the >> Eclipse autocompletion features. Having a look to the .project I see : >> >> <linkedResources> >> <link> >> <name>MYPROJECT</name> >> <type>2</type> >> >> <location>/home/jsanz/repositories/cprojects_trunk/images/myproject/build</location> >> </link> >> >> The location is actually where the CMakeList.txt of this project is but >> the sources are in locations like: >> >> /home/jsanz/repositories/cprojects_trunk/modules/myproject/ >> /home/jsanz/repositories/cprojects_trunk/modules/mymodule/ >> >> I actually changed manually the location for >> /home/jsanz/repositories/cprojects_trunk/modules/myproject/ and Eclipse >> register the sources on that folder. Does anyone have a suggestion of how I >> can fix this issue from a cmake script? >> >> Thank you for your help >> >> Regards >> Javier sanz. >> >> PD: I am using Out-Of-Source Builds following the instructions from >> http://www.vtk.org/Wiki/Eclipse_CDT4_Generator > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake