2019-09-25 17:38:48 +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()
|
|
|
|
require_strnicmp()
|
2019-10-05 11:41:21 +00:00
|
|
|
|
2019-09-25 17:38:48 +00:00
|
|
|
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_directories( wildmidi )
|
|
|
|
|
|
|
|
file( GLOB HEADER_FILES
|
|
|
|
wildmidi/*.h
|
|
|
|
)
|
|
|
|
add_library( wildmidi STATIC
|
|
|
|
file_io.cpp
|
|
|
|
gus_pat.cpp
|
|
|
|
reverb.cpp
|
|
|
|
wildmidi_lib.cpp
|
|
|
|
wm_error.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries( wildmidi )
|