[CMake] Generating Eclipse Project Files - No Source
Crast, Nicholas
Nicholas.Crast at saabsensis.com
Wed Sep 16 09:34:38 EDT 2015
Eric,
Thanks for the reply. Turned out it was fine all along. I did not see that the eclipse project contained a folder called [Source Directory], which I can use to browse the source files.
-Nick
----------------------------------------
Nick Crast
Software Engineer
Saab Sensis Corporation
Phone: 315-445-5703
Email: Nicholas.Crast at saabsensis.com<mailto:Nicholas.Crast at saabsensis.com>
From: Eric Noulard [mailto:eric.noulard at gmail.com]
Sent: Tuesday, September 15, 2015 4:16 PM
To: cmake at cmake.org
Cc: Crast, Nicholas
Subject: Re: [CMake] Generating Eclipse Project Files - No Source
2015-09-15 19:05 GMT+02:00 Crast, Nicholas <Nicholas.Crast at saabsensis.com<mailto: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/20150916/4fac13d0/attachment-0001.html>
More information about the CMake
mailing list