mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 16:40:56 +00:00
dffcefbfdf
libraries/timidity/instrum_dls.cpp:1071:18: error: ‘INT_MIN’ was not declared in this scope libraries/timidity/instrum_font.cpp:37:47: error: ‘stricmp’ was not declared in this scope libraries/timidity/timidity.cpp:207:32: error: ‘strcmp’ was not declared in this scope libraries/timidity/timidity.cpp:235:24: error: ‘strcmp’ was not declared in this scope libraries/timidity/timidity.cpp:310:33: error: ‘strchr’ was not declared in this scope libraries/timidity/timidity.cpp:515:30: error: ‘strchr’ was not declared in this scope libraries/timidity/timidity.cpp:602:34: error: ‘memset’ was not declared in this scope libraries/timidity/timidity.cpp:648:35: error: ‘memcpy’ was not declared in this scope libraries/timidity/timidity.cpp:753:41: error: ‘memset’ was not declared in this scope
35 lines
751 B
CMake
35 lines
751 B
CMake
cmake_minimum_required( VERSION 2.8.7 )
|
|
|
|
make_release_only()
|
|
|
|
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()
|
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG}")
|
|
|
|
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 )
|