Added support for FLAC audio files
This commit is contained in:
parent
6096d22091
commit
5e0e645f46
22 changed files with 8065 additions and 7 deletions
15
cmake/Modules/FindFLAC.cmake
Normal file
15
cmake/Modules/FindFLAC.cmake
Normal file
|
@ -0,0 +1,15 @@
|
|||
#
|
||||
# Try to find FLAC libraries and include paths.
|
||||
# Once done this will define
|
||||
#
|
||||
# FLAC_FOUND
|
||||
# FLAC_INCLUDE_DIR
|
||||
# FLAC_LIBRARY
|
||||
#
|
||||
|
||||
find_path(FLAC_INCLUDE_DIR flac/stream_decoder.h)
|
||||
|
||||
find_library(FLAC_LIBRARY NAMES flac)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(FLAC DEFAULT_MSG FLAC_LIBRARY FLAC_INCLUDE_DIR)
|
|
@ -325,9 +325,10 @@ if(SFML_STATIC_LIBRARIES)
|
|||
find_sfml_dependency(OGG_LIBRARY "Ogg" ogg)
|
||||
find_sfml_dependency(VORBIS_LIBRARY "Vorbis" vorbis)
|
||||
find_sfml_dependency(VORBISFILE_LIBRARY "VorbisFile" vorbisfile)
|
||||
find_sfml_dependency(FLAC_LIBRARY "FLAC" flac)
|
||||
|
||||
# update the list
|
||||
set(SFML_AUDIO_DEPENDENCIES ${OPENAL_LIBRARY} ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY} ${OGG_LIBRARY})
|
||||
set(SFML_AUDIO_DEPENDENCIES ${OPENAL_LIBRARY} ${FLAC_LIBRARY} ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY} ${OGG_LIBRARY})
|
||||
set(SFML_DEPENDENCIES ${SFML_DEPENDENCIES} ${SFML_AUDIO_DEPENDENCIES})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue