[CMake] How to check if Eclipse CDT4 generated project is set up correctly?

Nils Rathmann Nils.Rathmann at dwd.de
Fri Apr 22 07:28:33 EDT 2016


Hi Alex,
thanks for the details. I managed to add the header files as intended 
and do have the targets you described, but the virtual directories 
"CMake Rules", "Object Files" and "Ressources" of each Target 
subdirectory are still empty. What is the intention of these virtual 
directories?

Thank you,
Nils


Am 20.04.2016 um 22:14 schrieb Alexander Neundorf:
> On Monday, April 18, 2016 16:57:52 Nils Rathmann wrote:
>> Hi,
>> when I setup with the Eclipse CDT4 generator, as described here:
>> https://cmake.org/Wiki/Eclipse_CDT4_Generator4
>>
>> my [Targets] folder contains virtual folders for CMakeRules, Header
>> Files, Object Files, Resources and Source Files,
> Yes, those are the standard groups created by cmake.
>
>> but only the source files folder is filled.
> If you list also the header files in the sources for a target, they will
> appear in the [Header Files] group.
>
>> The other folders are always empty, even if I
>> build the target or the whole project. Is there a documentation where I
>> can see how a generated Eclipse project should look like? When I compare
>> my project with the sample screenshot in the wiki linked above, it looks
>> totally different (mine has a lot of virtual folders like Subprojects,
>> Targets, ...)
> you should have a [Source directory] virtual folder pointing to
> ${CMAKE_SOURCE_DIR}.
> You should have a virtual folder [Subprojects], with one subdir for every
> project()-call in your project.
>
> The "Make targets" tab should have some global targets to  build (like all,
> clean, rebuild_cache) and a "Build" and "Clean" make target for every target.
>
> Is this so ?
>
> Alex
>



More information about the CMake mailing list