[cmake-developers] Extracting target metadata, IDE integration

Aleix Pol aleixpol at kde.org
Thu Sep 18 20:10:12 EDT 2014


On Mon, Sep 8, 2014 at 2:51 PM, Brad King <brad.king at kitware.com> wrote:

> On 09/03/2014 12:12 PM, Aleix Pol wrote:
> > On Wed, Sep 3, 2014 at 5:48 PM, Alexander Neundorf wrote:
> >>     I still don't understand why this shouldn't be an additional
> ExtraGenerator.
> >
> > Because it's not possible to change the generator of a build directory
> > once it's set up. You need to nuke it and re-create it.
> [snip]
> On 09/01/2014 07:27 PM, Aleix Pol wrote:
> > Ok, how does it sound if we have a variable, such as
> CMAKE_EXPORT_COMPILE_COMMANDS?
> > Let's say, CMAKE_EXPORT_TARGETS_INFORMATION.
>
> A control variable like that sounds good to me.  The purpose looks very
> similar to CMAKE_EXPORT_COMPILE_COMMANDS, but is distinct enough to have
> its own control.
>
> Thanks,
> -Brad
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers
>

I added a CMAKE_OUTPUT_PROJECT_TARGETS variable that can be used to enable
the generation of the file.
I also renamed the file to ProjectTargets.json.

http://www.proli.net/meu/kdevelop/cmake-targetsdata.patch

Does it look better like this?
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140919/98294966/attachment-0002.html>


More information about the cmake-developers mailing list