<div dir="ltr"><div class="gmail_extra">I dunno; again, there isn't a magic call to 'main' which sets up the approriate call... there could be, but it would be project specific....</div><div class="gmail_extra">
<br></div><div class="gmail_extra">It would make more sense to make a macro like </div><div class="gmail_extra">add_program</div><div class="gmail_extra">which would hide the if; and would be an easy conversion from add_executable to add_program ....</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">still think at this point it's up to the developer and that having cmake just produce dll's instead of EXE's isn't quite enough</div></div>