(0026613)
|
wAy
|
2011-05-26 02:51
(edited on: 2011-05-26 02:52) |
|
Well,
at the moment our linked files look like this in the .project file:
<linkedResources>
<link>
<name>Foobar.cpp</name>
<type>1</type>
<location>../foo/Foobar.cpp</location>
</link>
<link>
...
</link>
</linkedResources>
So, there are no extra folders for the linked files. However, I think that there are many people, who prefer to have those files grouped also.
So what about something like:
CMAKE_ECLIPSE_LINKED_FILES where you may list all files:
set( CMAKE_ECLIPSE_LINKED_FILES ../foo1/bar1.cpp ../foo2/bar2.cpp ../foo2/bar3.cpp)
and a second one CMAKE_ECLIPSE_LINKED_FILES_FOLDER:
set( CMAKE_ECLIPSE_LINKED_FOLDERS folder_for_my_linked_files )
This one could create those linked resources at top level if not set and otherwise a folder, where the linked files will be found in?
Grouped folders won´t work, because if there are files in the same folder, that don´t belong to the project, you will see them within your project. At least, you can something similar to this with out-of-source-builds already.
I don´t know if this is acceptable for you or fits to the concept cmake follows, but if so, I would prefer something that works in this way.
Anyway, I would be happy about everything that makes it possible to link single files and see them in the eclipse project explorer. :-)
Regards,
wAy
|
|
(0027627)
|
Alex Neundorf
|
2011-10-23 09:07
|
|
The generated project now contains a virtual folder [Targets], where each target is again a sub-virtual folder, which contains links to all its source files, no matter where they are located.
This is now in the "next" branch of cmake.
Please give it a try and let me know if something doesn't work.
|
|