summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu_cmd/CMakeLists.txt')
-rw-r--r--src/yuzu_cmd/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt
index f6eeb9d8d..61b6cc4e0 100644
--- a/src/yuzu_cmd/CMakeLists.txt
+++ b/src/yuzu_cmd/CMakeLists.txt
@@ -49,6 +49,15 @@ if(UNIX AND NOT APPLE)
49 install(TARGETS yuzu-cmd) 49 install(TARGETS yuzu-cmd)
50endif() 50endif()
51 51
52if(WIN32)
53 # compile as a win32 gui application instead of a console application
54 if(MSVC)
55 set_target_properties(yuzu-cmd PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup")
56 elseif(MINGW)
57 set_target_properties(yuzu-cmd PROPERTIES LINK_FLAGS_RELEASE "-Wl,--subsystem,windows")
58 endif()
59endif()
60
52if (MSVC) 61if (MSVC)
53 include(CopyYuzuSDLDeps) 62 include(CopyYuzuSDLDeps)
54 copy_yuzu_SDL_deps(yuzu-cmd) 63 copy_yuzu_SDL_deps(yuzu-cmd)