I guess the reason is that add_library(... OBJECT ...) behaves similar
to add_custom_command and the files are only build if a target uses them
(and my custom target probably does not count as using the generated files).
What am I doing wrong and how can I create a target to build all object