mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
ff2680baa9
- Fixed compilation of snes_spc on GCC <4.3. - Fixed compilation of zstring.h on 32-bit MinGW, where SIZE_MAX and UINT_MAX are not considered identical by the preprocessor. SVN r1096 (trunk)
23 lines
745 B
CMake
23 lines
745 B
CMake
cmake_minimum_required( VERSION 2.4 )
|
|
include( CheckCXXCompilerFlag )
|
|
|
|
# I don't plan on debugging this, so make it a release build.
|
|
set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
|
|
|
|
if( CMAKE_COMPILER_IS_GNUCXX )
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fomit-frame-pointer" )
|
|
check_cxx_compiler_flag( -Wno-array-bounds HAVE_NO_ARRAY_BOUNDS )
|
|
if( HAVE_NO_ARRAY_BOUNDS )
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-array-bounds" )
|
|
endif( HAVE_NO_ARRAY_BOUNDS )
|
|
endif( CMAKE_COMPILER_IS_GNUCXX )
|
|
|
|
add_library( snes_spc
|
|
snes_spc/dsp.cpp
|
|
snes_spc/SNES_SPC.cpp
|
|
snes_spc/SNES_SPC_misc.cpp
|
|
snes_spc/SNES_SPC_state.cpp
|
|
snes_spc/spc.cpp
|
|
snes_spc/SPC_DSP.cpp
|
|
snes_spc/SPC_Filter.cpp )
|
|
target_link_libraries( snes_spc )
|