Removing console window for Glut/FreeGlut/GLFW?

后端 未结 8 649
醉话见心
醉话见心 2021-02-03 13:42

Under Visual C++, I have played around with Glut/FreeGlut/GLFW. It seems that everyone of these projects adds a CMD window by default. I tried removing it going under:

8条回答
  •  隐瞒了意图╮
    2021-02-03 13:57

    To get rid of the console using cmake, the link flags can be set as follows:

    set_target_properties(exe_name PROPERTIES 
        LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS")
    

提交回复
热议问题