cmake_modules/FindOggVorbis.cmake
changeset 2609 b67624c7d61e
parent 2606 ed687a8d081f
child 5169 e353ca78d28b
equal deleted inserted replaced
2608:cebfea02f8b5 2609:b67624c7d61e
    18 
    18 
    19 include (CheckLibraryExists)
    19 include (CheckLibraryExists)
    20 find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
    20 find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
    21 #  [koda] (for Hedgewars) added libraries with capital names for compatibility with Mac frameworks
    21 #  [koda] (for Hedgewars) added libraries with capital names for compatibility with Mac frameworks
    22 
    22 
    23 find_library(OGG_LIBRARY NAMES ogg Ogg)
    23 find_library(OGG_LIBRARY NAMES ogg)
    24 find_library(VORBIS_LIBRARY NAMES vorbis Vorbis)
    24 find_library(VORBIS_LIBRARY NAMES vorbis)
    25 find_library(VORBISFILE_LIBRARY NAMES vorbisfile Vorbis)
    25 find_library(VORBISFILE_LIBRARY NAMES vorbisfile)
    26 
    26 
    27 if (OGG_LIBRARY AND VORBIS_LIBRARY AND VORBISFILE_LIBRARY)
    27 if (OGG_LIBRARY AND VORBIS_LIBRARY AND VORBISFILE_LIBRARY)
    28    set(OGGVORBIS_FOUND TRUE)
    28    set(OGGVORBIS_FOUND TRUE)
    29 #  [sommer] (for SuperTux) reversed order of libraries, so that cmake 2.4.5 for Windows generates an MSYS Makefile that will link correctly
    29 #  [sommer] (for SuperTux) reversed order of libraries, so that cmake 2.4.5 for Windows generates an MSYS Makefile that will link correctly
    30 #  set(OGGVORBIS_LIBRARIES ${OGG_LIBRARY} ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY})
    30 #  set(OGGVORBIS_LIBRARIES ${OGG_LIBRARY} ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY})