mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
de5d4715c2
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)
23 lines
763 B
CMake
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 )
|