Hey.
So I made this module.
https://github.com/windymindy/examples_cmake/blob/default/main/cmake/fix_debug_symbols.cmake
It enumerates all targets in the current directory,
for static libraries it sets some variables so that the debug symbols are put to the build directory
(which does not happen by default, they just end up in some subddirectory) and
for shared or static librares and for executables the module installs them with the target.
I really wanted to install the symbols automatically, but only for targets that are being installed.
I went with a quick quirk that checks if the contents of the cmake_install.cmake contains the target name.
I want to clean this up now.
https://github.com/windymindy/examples_cmake/blob/default/main/cmake/fix_debug_symbols.cmake#L104
Would someone be so kind to tell:
Is cmake_file_api the best option to find out what is being installed by the project?
What is the idiomatic way to expand the set of artifacts of the target in general?
Thank you.