2019-09-24 21:43:44 +00:00
|
|
|
cmake_minimum_required( VERSION 2.8.7 )
|
|
|
|
|
2019-10-05 11:41:21 +00:00
|
|
|
use_fast_math()
|
2019-10-05 11:47:36 +00:00
|
|
|
require_stricmp()
|
2019-10-05 11:41:21 +00:00
|
|
|
|
2019-09-24 21:43:44 +00:00
|
|
|
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
2019-10-05 12:02:10 +00:00
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-unused-function -Wno-unused-variable" )
|
2019-09-24 21:43:44 +00:00
|
|
|
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 )
|