[CMake] Generating Eclipse Project Files - No Source

Eric Noulard eric.noulard at gmail.com
Tue Sep 15 16:15:12 EDT 2015


2015-09-15 19:05 GMT+02:00 Crast, Nicholas <Nicholas.Crast at saabsensis.com>:

> Hi all,
>
>
>
> I am attempting to use CMake to generate eclipse project files. Although I
> am able to build successfully, I am unable to browse or edit the source in
> eclipse.
>

You don't see any source as link ressource or you see them but cannot
browse/edit the sources?


> This is an out of tree build, where my build directory is at the same
> level as my source directory. I am using the following command to generate
> the eclipse files:
>
>
>
> cmake -G"Eclipse CDT4 - Unix Makefiles" -DBoost_NO_BOOST_CMAKE=ON
> -DBOOST_ROOT=/usr/local/lib -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE
> ../proc
>
>
>
> The source directory has many different modules, but the top level
> CMakeLists file is essentially a bunch of add_subdirectory commands adding
> each module. Is this incorrect?
>


Would you be able to reproduce the issue on a stripped down project (like
only two modules) ?

Which version of Eclipse CDT and CMake are you using?

On which system?


-- 
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150915/65b908d4/attachment.html>


More information about the CMake mailing list