<div dir="ltr">and (sorry for double reply) having add_executable always build as a library means I can't build real executables... if it did it based on the WIN32 flag (or equivalent0 it would be better</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 7:17 AM, J Decker <span dir="ltr"><<a href="mailto:d3ck0r@gmail.com" target="_blank">d3ck0r@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>
</blockquote></div><br></div>