|
|
|
@ -126,19 +126,22 @@ set(OPENMW_LIBS ${MANGLE_ALL} ${OENGINE_ALL})
|
|
|
|
|
set(OPENMW_LIBS_HEADER)
|
|
|
|
|
|
|
|
|
|
# Sound setup
|
|
|
|
|
set(SOUND_INPUT_INCLUDES "")
|
|
|
|
|
set(SOUND_INPUT_LIBRARY "")
|
|
|
|
|
set(SOUND_DEFINE "")
|
|
|
|
|
if (USE_FFMPEG)
|
|
|
|
|
find_package(FFMPEG REQUIRED)
|
|
|
|
|
set(SOUND_INPUT_INCLUDES ${FFMPEG_INCLUDE_DIR})
|
|
|
|
|
set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES})
|
|
|
|
|
set(SOUND_DEFINE -DOPENMW_USE_FFMPEG)
|
|
|
|
|
set(SOUND_INPUT_INCLUDES ${SOUND_INPUT_INCLUDES} ${FFMPEG_INCLUDE_DIR})
|
|
|
|
|
set(SOUND_INPUT_LIBRARY ${SOUND_INPUT_LIBRARY} ${FFMPEG_LIBRARIES})
|
|
|
|
|
set(SOUND_DEFINE ${SOUND_DEFINE} -DOPENMW_USE_FFMPEG)
|
|
|
|
|
endif (USE_FFMPEG)
|
|
|
|
|
|
|
|
|
|
if (USE_MPG123)
|
|
|
|
|
find_package(MPG123 REQUIRED)
|
|
|
|
|
find_package(SNDFILE REQUIRED)
|
|
|
|
|
set(SOUND_INPUT_INCLUDES ${MPG123_INCLUDE_DIR} ${SNDFILE_INCLUDE_DIR})
|
|
|
|
|
set(SOUND_INPUT_LIBRARY ${MPG123_LIBRARY} ${SNDFILE_LIBRARY})
|
|
|
|
|
set(SOUND_DEFINE -DOPENMW_USE_MPG123)
|
|
|
|
|
set(SOUND_INPUT_INCLUDES ${SOUND_INPUT_INCLUDES} ${MPG123_INCLUDE_DIR} ${SNDFILE_INCLUDE_DIR})
|
|
|
|
|
set(SOUND_INPUT_LIBRARY ${SOUND_INPUT_LIBRARY} ${MPG123_LIBRARY} ${SNDFILE_LIBRARY})
|
|
|
|
|
set(SOUND_DEFINE ${SOUND_DEFINE} -DOPENMW_USE_MPG123)
|
|
|
|
|
endif (USE_MPG123)
|
|
|
|
|
|
|
|
|
|
# Platform specific
|
|
|
|
|