[CMake] add_executable WIN32

David Cole david.cole at kitware.com
Fri Apr 11 06:38:56 EDT 2008


Having said that, if you provide "main" to a /subsytem:windows application,
it will still work, but it will have an annoying console window pop up if
you launch your app by double-clicking on it from Windows Explorer.


On Fri, Apr 11, 2008 at 6:37 AM, David Cole <david.cole at kitware.com> wrote:

> WIN32 in ADD_EXECUTABLE == /subsystem:windows
> lack of WIN32 == /subsystem:console
>
> It's up to you to provide "WinMain" if you specify WIN32 and to provide
> "main" otherwise...
>
>
>
> On Fri, Apr 11, 2008 at 5:03 AM, Alin M Elena <alin.elena at qub.ac.uk>
> wrote:
>
> > Hi,
> >
> > I think that I am a little confused about what WIN32 option does in
> > fact.
> >
> > Is WIN32 supposed to transform main() in a WinMain() entry point
> > (transform
> > a /subsystem:console -> /subsystem:windows)?
> > Or
> > WIN32 tells compiler: do not downgrade a WinMain to a main()?
> >
> >
> >
> > Alin
> >
> >
> >   ____________________________________________________________________
> >   "...if the universities will not study useless subjects, who will?"
> >                              G. F. Fitzgerald, Nature, 45/46, 392 (1892)
> >   ______________________________________________________________________
> >   Mr. Alin M. ELENA
> >   Atomistic Simulation Centre
> >   School of Mathematics and Physics
> >   Queen's University Belfast
> >   Office: +44 (0)28 9097 1428
> >   Fax: +44 (0)28 9097 5359
> >   http://titus.phy.qub.ac.uk/group/Alin/
> >   alin.elena at yahoo.co.uk
> >   alin.elena at qub.ac.uk
> >   ______________________________________________________________________
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080411/21b491d1/attachment.htm>


More information about the CMake mailing list