minor fixes
This commit is contained in:
parent
d465e0bc34
commit
e2c0100e43
@ -30,6 +30,9 @@ IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
SET(LINK_FLAGS "${debug_linker}")
|
||||
SET(optimize_flags "-Og -g3 -ffunction-sections -fdata-sections")
|
||||
ADD_DEFINITIONS(-DDEBUG)
|
||||
IF(WIN32)
|
||||
SET(win_console "-mconsole")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
SET(optimize_flags "-O3 -ffast-math")
|
||||
ENDIF()
|
||||
@ -61,7 +64,7 @@ SET(warn_flags "\
|
||||
|
||||
# Put all the flags we have gathered
|
||||
SET(CMAKE_CXX_FLAGS
|
||||
"${arch_flags} ${optimize_flags} ${warn_flags} ${win_flags}"
|
||||
"${arch_flags} ${optimize_flags} ${warn_flags} ${win_flags} ${win_console}"
|
||||
)
|
||||
|
||||
# The main project files
|
||||
@ -110,7 +113,7 @@ ADD_EXECUTABLE(HomdEngine
|
||||
)
|
||||
|
||||
IF(WIN32)
|
||||
SET(win32_link -mwindows, -mconsole)
|
||||
SET(win32_link -mwindows)
|
||||
ENDIF()
|
||||
|
||||
TARGET_LINK_LIBRARIES(HomdEngine
|
||||
|
@ -11,7 +11,8 @@
|
||||
|
||||
#define SDL_FLAGS SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER
|
||||
#define SDL_WINDOW_FLAGS \
|
||||
SDL_WINDOW_OPENGL | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_MAXIMIZED
|
||||
SDL_WINDOW_OPENGL | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_MAXIMIZED | \
|
||||
SDL_WINDOW_RESIZABLE
|
||||
|
||||
#define WINDOW_TITLE "Homd Engine"
|
||||
#define WINDOW_INITIAL_W 960
|
||||
|
Reference in New Issue
Block a user