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

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-05-02T14:29:07Z Indexed on 2010/05/02 14:37 UTC
Read the original article Hit count: 178

Filed under:

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(can be main).

How should I do it properly?

© Stack Overflow or respective owner

Related posts about cmake