[cmake-developers] Building executables as libraries

J Decker d3ck0r at gmail.com
Wed Mar 26 10:18:26 EDT 2014


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


On Wed, Mar 26, 2014 at 7:17 AM, J Decker <d3ck0r at gmail.com> wrote:

> 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....
>
> It would make more sense to make a macro like
> add_program
> which would hide the if; and would be an easy conversion from
> add_executable to add_program ....
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140326/c41a7d61/attachment-0002.html>


More information about the cmake-developers mailing list