qzdoom/snes_spc/CMakeLists.txt
Randy Heit de5d4715c2 - Added Linux support for the CMakeLists. This meant downgrading them for
CMake 2.4, since the distros don't seem to consider 2.6 stable yet.
  As a bonus, GTK+ is no longer a required dependency; now it's optional.
- Made dehsupp ignore CR characters, so it doesn't spew warnings on Linux.



SVN r1092 (trunk)
2008-07-25 01:37:44 +00:00

23 lines
763 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 -Wno-array-bounds" )
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 )