Is it possible to call a CMake function out of an add_custom_target
or add_custom_command
?
I know I could move the CMake function to a Python (or whatever) script and call it from add_custom_target
/command
but I would like to avoid having tons of script next to the existing CMake infra.
What I want to achieve is to use CPack for generating a zip package of binary artifacts and publish them in an artifact repository. For the publishing part I have already the CMake function created but now I need to combine the packaging and publishing together.
Thanks for any help/hints in advance.