source: BAORadio/libindi/v1.0.1/cmake_modules/FindVorbis.cmake @ 503

Last change on this file since 503 was 490, checked in by campagne, 14 years ago

import libindi (JEC)

File size: 1.1 KB
Line 
1# - Find vorbis
2# Find the native vorbis includes and libraries
3#
4#  VORBIS_INCLUDE_DIR - where to find vorbis.h, etc.
5#  VORBIS_LIBRARIES   - List of libraries when using vorbis(file).
6#  VORBIS_FOUND       - True if vorbis found.
7
8if(VORBIS_INCLUDE_DIR)
9    # Already in cache, be silent
10    set(VORBIS_FIND_QUIETLY TRUE)
11endif(VORBIS_INCLUDE_DIR)
12
13find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
14
15find_library(OGG_LIBRARY NAMES ogg)
16find_library(VORBIS_LIBRARY NAMES vorbis)
17find_library(VORBISFILE_LIBRARY NAMES vorbisfile)
18
19# Handle the QUIETLY and REQUIRED arguments and set VORBIS_FOUND to TRUE if
20# all listed variables are TRUE.
21include(FindPackageHandleStandardArgs)
22find_package_handle_standard_args(VORBIS DEFAULT_MSG
23    VORBIS_INCLUDE_DIR OGG_LIBRARY VORBIS_LIBRARY VORBIS_LIBRARY)
24
25if(VORBIS_FOUND)
26  set(VORBIS_LIBRARIES ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY} ${OGG_LIBRARY})
27else(VORBIS_FOUND)
28  set(VORBIS_LIBRARIES)
29endif(VORBIS_FOUND)
30
31mark_as_advanced(VORBIS_INCLUDE_DIR)
32mark_as_advanced(OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY)
Note: See TracBrowser for help on using the repository browser.