[cmake-developers] Extracting target metadata, IDE integration
Brad King
brad.king at kitware.com
Wed Mar 4 15:05:06 EST 2015
On 03/02/2015 09:10 PM, Aleix Pol wrote:
> I created a new version of the patch:
> http://proli.net/meu/kdevelop/0001-cmake-Add-option-to-generate-target-metadata-for-IDE-v2.patch
Thanks.
> Samples:
> LLVM: https://paste.kde.org/pelr1ditp
> A small random KDE project: https://paste.kde.org/pgkbecv5p
The "location" values need to be inside the "configs" elements because
they can vary with the configuration in multi-config generators.
Also the name "location" may not be specific enough. Some targets
may have multiple output files (e.g. .dll, .lib). See the breakdown
of $<TARGET*FILE:...> generator expressions:
http://www.cmake.org/cmake/help/v3.2/manual/cmake-generator-expressions.7.html#informational-expressions
Some set of values like that will be more useful.
If the the "directory" value is GetCurrentOutputDirectory, the
build tree location of the project file, then that does not need
to be per-configuration. In that case perhaps the name should be
something like "build_directory" or "project_directory".
Thanks,
-Brad
More information about the cmake-developers
mailing list