mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-16 23:31:10 +00:00
5603c70574
- apply Chris's latest patch. SVN r2534 (openal)
10 lines
584 B
CMake
10 lines
584 B
CMake
cmake_minimum_required( VERSION 2.4 )
|
|
if( NOT NO_FMOD AND FMOD_INCLUDE_DIR )
|
|
add_library( output_sdl MODULE output_sdl.c )
|
|
include_directories( ${FMOD_INCLUDE_DIR} ${SDL_INCLUDE_DIR} )
|
|
|
|
FILE( WRITE ${CMAKE_CURRENT_BINARY_DIR}/link-make "if [ ! -e ${ZDOOM_OUTPUT_DIR}/liboutput_sdl.so ]; then ln -sf output_sdl/liboutput_sdl.so ${ZDOOM_OUTPUT_DIR}/liboutput_sdl.so; fi" )
|
|
add_custom_command( TARGET output_sdl POST_BUILD
|
|
COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make
|
|
COMMAND /bin/sh -c ${CMAKE_CURRENT_BINARY_DIR}/link-make )
|
|
endif( NOT NO_FMOD AND FMOD_INCLUDE_DIR )
|