<div dir="ltr">Hello everybody<br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I&#39;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)   -&gt; Thrift Compiler/Generator -&gt; 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] -&gt; Build Library -&gt; 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&#39;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&#39;t know what&#39;s the output of the generator I didn&#39;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>