mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
- Fixed compilation with MinGW.
This commit is contained in:
parent
1ca4e0c98a
commit
cb48b796a8
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,10 @@ require_strnicmp()
|
|||
|
||||
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
|
||||
if( WIN32 )
|
||||
set( CMAKE_CXX_FLAGS "-D_UNICODE -DUNICODE ${CMAKE_CXX_FLAGS}" )
|
||||
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include( CheckFunctionExists )
|
||||
|
@ -109,6 +113,10 @@ add_library( zmusic STATIC
|
|||
)
|
||||
target_link_libraries( zmusic adl dumb gme oplsynth opn timidity timidityplus wildmidi "${CMAKE_DL_LIBS}" )
|
||||
|
||||
if( MINGW )
|
||||
target_link_libraries( zmusic winmm )
|
||||
endif()
|
||||
|
||||
if( NOT DYN_SNDFILE AND SNDFILE_FOUND )
|
||||
include_directories( "${SNDFILE_INCLUDE_DIRS}" )
|
||||
target_link_libraries( zmusic ${SNDFILE_LIBRARIES} )
|
||||
|
|
Loading…
Reference in a new issue