[CMake] How do I tell cmake not to create a console window?

Mr Shore shore.cloud at gmail.com
Sun May 2 10:20:44 EDT 2010


I can achieve this by gcc :

gcc -mwindows -o simple simple.c


But only find this in cmake:

add_executable(simple WIN32 simple.c)

But it's not exactly the same as -mwindows,

this will require the entry point to be WinMain,

while gcc -mwindows doesn't require this.

How should I do it properly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100502/f074aff5/attachment.htm>


More information about the CMake mailing list