mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
3dac769c33
commit
acaedee159
1 changed files with 1 additions and 0 deletions
|
@ -167,6 +167,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
SET(PLATFORM_SRC windows.c)
|
SET(PLATFORM_SRC windows.c)
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32)
|
||||||
remove_definitions(-DUNICODE)
|
remove_definitions(-DUNICODE)
|
||||||
|
add_definitions(-mwindows)
|
||||||
if(NOT DEFINED LRELEASE)
|
if(NOT DEFINED LRELEASE)
|
||||||
set(LRELEASE lrelease.exe)
|
set(LRELEASE lrelease.exe)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue