MantisBT - CMake
View Issue Details
0012294CMakeCMakepublic2011-06-21 09:322011-10-23 09:09
Galeazzi 
Alex Neundorf 
normalmajoralways
closedfixed 
CMake-2-8 
 
0012294: Sources outside of source directory aren't included in Eclipse Project view
Suppose to have a CMakeLists.txt including a file with the following path:
../foo.c
This file won't be displayed in the Eclipse Project view.
Create an Eclipse Project with the above structure.
No tags attached.
duplicate of 0012223closed Alex Neundorf Support of linked resources in Eclipse/CDT (single files, not folders) 
Issue History
2011-06-21 09:32GaleazziNew Issue
2011-09-05 12:05David ColeAssigned To => Alex Neundorf
2011-09-05 12:05David ColeStatusnew => assigned
2011-09-05 12:06David ColeNote Added: 0027348
2011-09-05 12:46GaleazziNote Added: 0027351
2011-09-30 14:56Alex NeundorfRelationship addedduplicate of 0012223
2011-10-23 09:09Alex NeundorfNote Added: 0027628
2011-10-23 09:09Alex NeundorfStatusassigned => closed
2011-10-23 09:09Alex NeundorfResolutionopen => fixed

Notes
(0027348)
David Cole   
2011-09-05 12:06   
Why do you need sources outside of your source directory to show up in Eclipse as if they *were* in your source directory.....? (Just curious, really, I'm sure you have a valid use case.)
(0027351)
Galeazzi   
2011-09-05 12:46   
Because I need to edit the sources by eclipse, not only to make a build, so I'd like to browse them in the eclipse layout, just as VS does.
(0027628)
Alex Neundorf   
2011-10-23 09:09   
The generated projects now contain a virtual folder [Targets], which contains a virtual folder for each target. Each target then contains links to all its source files, so you should be able to find them there.

This is now in the "next" branch of cmake and should be in 2.8.7.

Please give it a try and let me know if you find problems with this.