<div dir="ltr">In our project we are generating code from CORBA IDL files by adding a custom command that generates C++ code from the IDL files and a library target that depends on the generated output. This works as expected, however IDL supports include directives which are (naturally) not picked up as dependencies by CMake. To give an example:<div>
<br></div><div>a.idl:</div><div>--------------------</div><div>#include "b.idl"</div><div>#include "c.idl"</div><div>---------------------<br></div><div><br></div><div>Here the file a.idl file includes b.idl and c.idl. The file a.idl is given as input to the custom command that processes IDL files into C++, but if I change b.idl or c.idl then the target is not rebuilt. Is it possible to add b.idl and c.idl as explicit dependencies in some way so that my target is rebuilt if these files change? I've made various attempts with add_custom_target() and add_dependencies() as well as set_source_files_properties() without any luck.</div>
<div><br></div><div>Regards,</div><div>--</div><div>Tarjei</div></div>