win32: build win app, not console

This commit is contained in:
Flyinghead 2022-09-23 16:38:49 +02:00
parent 2b8f5a7b9d
commit 7288c7b541
1 changed files with 4 additions and 2 deletions

View File

@ -137,10 +137,12 @@ elseif(ANDROID)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE} -O3")
target_compile_options(${PROJECT_NAME} PRIVATE -fno-stack-protector)
set(CMAKE_ANDROID_STL_TYPE "c++_static")
elseif(MSVC)
elseif(WIN32)
add_executable(${PROJECT_NAME} WIN32 core/emulator.cpp)
else()
elseif(APPLE)
add_executable(${PROJECT_NAME} MACOSX_BUNDLE core/emulator.cpp)
else()
add_executable(${PROJECT_NAME} core/emulator.cpp)
endif()
if(WINDOWS_STORE)