Fix release/debug in cmake
This commit is contained in:
parent
f90336a6a5
commit
ab6b13fbd5
|
@ -1,3 +1,4 @@
|
|||
project("fceux: cross-mingw32 debug")
|
||||
set(CMAKE_BUILD_TYPE debug)
|
||||
set(FCEUX_EXE_NAME fceuxDBG.exe)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cross-mingw32/fceux_cross-mingw32.cmake)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
project("fceux: cross-mingw32 release")
|
||||
set(CMAKE_BUILD_TYPE release)
|
||||
set(FCEUX_EXE_NAME fceuxREL.exe)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cross-mingw32/fceux_cross-mingw32.cmake)
|
||||
|
|
|
@ -315,6 +315,9 @@ endif(APPLE)
|
|||
if(MINGW)
|
||||
add_definitions( -DNEED_MINGW_HACKS -D_WIN32_IE=0x0600 )
|
||||
endif(MINGW)
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||
add_definitions( -D_DEBUG )
|
||||
endif(CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-write-strings -Wno-sign-compare")
|
||||
endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
project("fceux: native debug")
|
||||
set(CMAKE_BUILD_TYPE debug)
|
||||
set(FCEUX_EXE_NAME fceuxDBG)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/native/fceux_native.cmake)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
project("fceux: native release")
|
||||
set(CMAKE_BUILD_TYPE release)
|
||||
set(FCEUX_EXE_NAME fceuxREL)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/native/fceux_native.cmake)
|
||||
|
|
Loading…
Reference in New Issue