cmake: make Windows binary a GUI app

This way we don't get the annoying terminal window

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-04-03 10:32:05 -07:00
parent 3dac769c33
commit acaedee159

View file

@ -167,6 +167,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Windows")
SET(PLATFORM_SRC windows.c)
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32)
remove_definitions(-DUNICODE)
add_definitions(-mwindows)
if(NOT DEFINED LRELEASE)
set(LRELEASE lrelease.exe)
endif()