<div dir="ltr">Hello everybody<br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I'm trying to build a library from source files that are generated at build time. The setup is the following.</div><div><br>
</div><div><span style="background-color:yellow">Inputfiles</span> (Service.thrift) -> Thrift Compiler/Generator -> Several generated files (gen-<span style="background-color:yellow">cpp</span>/Service.h, gen-<span style="background-color:yellow">cpp</span>/Service.<span style="background-color:yellow">cpp</span>, gen-<span style="background-color:yellow">cpp</span>/Types.h, [possibly more] -> Build Library -> Library (thrift-service.so)</div>
<div><br></div><div>The idea is to rebuild the library whenever one of the Service.thrift file changes.</div><div>The problem is that I don't know the output of the generated files in advanced so I like to use all the files generated by the generator and pack them in a library.<br>
</div><div><br></div><div>I tried to use add_custom_command() but as I don't know what's the output of the generator I didn't succeed.</div><div><br></div><div>Is there a way to handle this scenario?</div><div>
<br></div><div>Regards</div><span class=""><font color="#888888">Pascal</font></span></div></div></div>