[cmake-developers] Extracting target metadata, IDE integration

Brad King brad.king at kitware.com
Wed Sep 24 09:55:42 EDT 2014


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.

-Brad




More information about the cmake-developers mailing list