Hello,<br><br>In my C++ program I want to auto-generate a header ( .h ) file, which is included in most sources. I use ADD_CUSTOM_COMMAND to generate it, but I don&#39;t know how to neatly write the dependency to it.<br><br>
I could use ADD_DEPENDENCY to add the generated header to all final targets, but it will get messy if I have lots of targets and generated headers.<br><br>Is there a way such that generated-files are checked in each invocation of make without explicitly referring it as a dependency to something? ie. generated file as a final target, like ADD_CUSTOM_TARGET with the ALL option but not phony.
<br><br>Regards<br>Pacesie<br>