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(LINK_FLAGS "${debug_linker}")
|
||||||
SET(optimize_flags "-Og -g3 -ffunction-sections -fdata-sections")
|
SET(optimize_flags "-Og -g3 -ffunction-sections -fdata-sections")
|
||||||
ADD_DEFINITIONS(-DDEBUG)
|
ADD_DEFINITIONS(-DDEBUG)
|
||||||
|
IF(WIN32)
|
||||||
|
SET(win_console "-mconsole")
|
||||||
|
ENDIF()
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(optimize_flags "-O3 -ffast-math")
|
SET(optimize_flags "-O3 -ffast-math")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
@ -61,7 +64,7 @@ SET(warn_flags "\
|
|||||||
|
|
||||||
# Put all the flags we have gathered
|
# Put all the flags we have gathered
|
||||||
SET(CMAKE_CXX_FLAGS
|
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
|
# The main project files
|
||||||
@ -110,7 +113,7 @@ ADD_EXECUTABLE(HomdEngine
|
|||||||
)
|
)
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
SET(win32_link -mwindows, -mconsole)
|
SET(win32_link -mwindows)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(HomdEngine
|
TARGET_LINK_LIBRARIES(HomdEngine
|
||||||
|
@ -10,8 +10,9 @@
|
|||||||
#include <SDL2/SDL_video.h>
|
#include <SDL2/SDL_video.h>
|
||||||
|
|
||||||
#define SDL_FLAGS SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER
|
#define SDL_FLAGS SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER
|
||||||
#define SDL_WINDOW_FLAGS \
|
#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_TITLE "Homd Engine"
|
||||||
#define WINDOW_INITIAL_W 960
|
#define WINDOW_INITIAL_W 960
|
||||||
|
Reference in New Issue
Block a user