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

Nils Rathmann Nils.Rathmann at dwd.de
Tue Apr 26 03:41:22 EDT 2016


Hi Martin,
Thanks, I had a look at the marketplace and tried the available plugins. I already use CMakeEd for syntax highlighting and auto-completion while editing cmake files, but the other options seem to me like an alternative to the cmake generated Eclipse project. cmake4eclipse is a good simplification when I want to keep the filesystem structure in my project view. This is how I did it before, but I wrote an external script, integrated as external tool in eclipse. The plugin is more convenient. (when you found out how to use it :-) )
 From my point of view, the CMakeBuilder is not required, when you manage to integrate cmake-gui as make target, like the CDT generator does.

I would like to understand the cmake created project, because it seems to be a good choice for the Eclipse integration. Hence, do you or does anyone has an idea what the plan for the virtual directories "CMake Rules", "Object Files" and "Ressources" was. Beside the obvious expectation of their meaning, they are still empty and I am not able to get them filled.

Thank you,
Nils


Date: Fri, 22 Apr 2016 20:33:47 +0200
From: Martin Weber<fifteenknots505 at gmail.com>
To:cmake at cmake.org
Subject: Re: [CMake] How to check if Eclipse CDT4 generated project is
	set	up correctly?
Message-ID: <3667406.FPWffH5mkm at linux>
Content-Type: text/plain; charset="us-ascii"

Am Freitag, 22. April 2016, 13:28:33 schrieb Nils Rathmann:

> 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?

Hi Nils,

the Eclipse Marketplace has some plugins that help you to work with cmake in
Eclipse.
Just search for 'cmake'...

Martin



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