gzdoom-gles/libraries/timidity/CMakeLists.txt
alexey.lysiuk aa8438cb45 - applied fast math flags to C and C++ files
Avoid copy-paste using CMake macro

# Conflicts:
#	CMakeLists.txt
#	libraries/glslang/OGLCompilersDLL/CMakeLists.txt
#	libraries/glslang/glslang/CMakeLists.txt
#	libraries/glslang/spirv/CMakeLists.txt
2020-01-05 21:07:36 +01:00

33 lines
687 B
CMake

cmake_minimum_required( VERSION 2.8.7 )
use_fast_math()
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
endif()
include( CheckFunctionExists )
CHECK_FUNCTION_EXISTS( stricmp STRICMP_EXISTS )
if( NOT STRICMP_EXISTS )
add_definitions( -Dstricmp=strcasecmp )
endif()
include_directories( timidity )
file( GLOB HEADER_FILES
timidity/*.h
)
add_library( timidity STATIC
common.cpp
instrum.cpp
instrum_dls.cpp
instrum_font.cpp
instrum_sf2.cpp
mix.cpp
playmidi.cpp
resample.cpp
timidity.cpp
)
target_link_libraries( timidity )