no console on windows
This commit is contained in:
parent
f68eba6a9f
commit
e1af35f061
|
@ -111,7 +111,11 @@ SET(SOURCES
|
|||
IF(WIN32)
|
||||
SET(SOURCES ${SOURCES} src/framework/platform/win32platform.cpp)
|
||||
SET(ADDITIONAL_LIBRARIES ws2_32)
|
||||
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501 -DWIN32_NO_CONSOLE)
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -mwindows")
|
||||
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501)
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
ADD_DEFINITIONS(-DWIN32_NO_CONSOLE)
|
||||
ELSE(WIN32)
|
||||
SET(SOURCES ${SOURCES} src/framework/platform/x11platform.cpp)
|
||||
SET(ADDITIONAL_LIBRARIES pthread GLU)
|
||||
|
|
Loading…
Reference in New Issue