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: [email protected]<mailto:[email protected]>

From: Eric Noulard [mailto:[email protected]]
Sent: Tuesday, September 15, 2015 4:16 PM
To: [email protected]
Cc: Crast, Nicholas
Subject: Re: [CMake] Generating Eclipse Project Files - No Source



2015-09-15 19:05 GMT+02:00 Crast, Nicholas 
<[email protected]<mailto:[email protected]>>:
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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to