[CMake] add_executable WIN32
David Cole
david.cole at kitware.com
Fri Apr 11 06:37:20 EDT 2008
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/b6eba364/attachment.htm>
More information about the CMake
mailing list