On Wed, Mar 4, 2015 at 9:05 PM, Brad King <brad.k...@kitware.com> wrote: > 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. Good point, I changed it to use $<TARGET_FILE:tgt>. Showing a directory didn't make much sense anyway as we have more information with the full file path.
> > 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". Used output_directory to match internal cmake naming. https://paste.kde.org/p5ogjqi2n https://paste.kde.org/puzgrgkzy And the new version of the patch (sorry my hosting seems down and I can't connect). https://paste.kde.org/pq0xungvq Aleix -- 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