mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
3dc01e77f7
CMAKE_BUILD_TYPE. (It seems to like to hang when generating arith.h for gdtoa when you do this, but killing the make process and restarting it seems to fix that.) SVN r1531 (trunk)
26 lines
832 B
CMake
26 lines
832 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" )
|
|
if( NOT PROFILE )
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fomit-frame-pointer" )
|
|
endif( NOT PROFILE )
|
|
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 )
|