[cmake-developers] Extracting target metadata, IDE integration

Aleix Pol aleixpol at kde.org
Wed Sep 24 12:51:26 EDT 2014


On Wed, Sep 24, 2014 at 3:55 PM, Brad King <brad.king at kitware.com> wrote:

> On 09/22/2014 07:15 PM, Aleix Pol wrote:
> > {
> > version: "1.0",
> > targets: [...]
> > }
>
> Yes.  The version number could either be maintained as its own
> thing, or just the CMake version number could be used.  Either way
> the Help/variable/CMAKE_OUTPUT_PROJECT_TARGETS.rst documentation
> should specify the format of each version.
>
> BTW, the phrase "output project targets" is not particularly
> clear without knowing the feature already.  Perhaps some other
> name like "CMAKE_EXPORT_IDE_METADATA" would be better?
>
> > I've never worked with those, but it sounds like it would make sense.
> What about:
> >
> > {
> > version: ..
> > configurations: {
> > { name: "Debug", targets: [...] },
> > { name: "Release", targets: [...] }
> > }
> > }
>
> Yes, something like that.  I think you meant to use [] rather than
> {} around the list of configurations.  In the case that there is
> only one configuration for the generator we should still use a
> list but have only one entry.
>
Sure :)


>
> -Brad
>
>
Hi,
Here's another iteration of the patch [1].

Basically adopts the possibility to move some information to depend on the
configuration. Currently it's only showing the I source files, I guess
location, directory and installed should be moved as well. Correct?

Aleix

[1]
New patch:
http://proli.net/meu/kdevelop/0001-cmake-Add-option-to-generate-target-metadata-for-IDE.patch
New output: http://proli.net/meu/kdevelop/ProjectTargets.json
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140924/b6676165/attachment-0002.html>


More information about the cmake-developers mailing list