mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 23:41:48 +00:00
c09f196141
Avoid copy-paste using CMake macro
34 lines
757 B
CMake
34 lines
757 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()
|
|
|
|
CHECK_FUNCTION_EXISTS( strnicmp STRNICMP_EXISTS )
|
|
if( NOT STRNICMP_EXISTS )
|
|
add_definitions( -Dstrnicmp=strncasecmp )
|
|
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 )
|