<div dir="ltr">Good background, just a minor correction:<div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 22, 2016 at 5:44 PM, Sascha Cunz <span dir="ltr"><<a href="mailto:sascha@cunz-rad.com" target="_blank">sascha@cunz-rad.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
The problem here is, that once a target is created in CMake, you can’t add any files to it. So this has to be done that way.<br></blockquote><div><br></div><div>Not actually true, the <a href="https://cmake.org/cmake/help/latest/command/target_sources.html">target_sources()</a> command can do precisely that. The following article shows some reasons why this is particularly useful:</div><div><br></div><div><a href="https://crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources/">https://crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources/</a><br></div><div><br></div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div></div></div></div></div></div></div>
</div></div>