2012-11-11 16:38:27 +01:00
|
|
|
# Locate VORBIS libraries ()
|
|
|
|
# This module defines
|
|
|
|
# VORBIS_LIBRARY : list of lib names
|
|
|
|
# VORBIS_FOUND : if false, do not try to link to VORBIS
|
|
|
|
# VORBIS_INCLUDE_DIR : where to find the headers
|
|
|
|
#
|
|
|
|
# $VORBIS_DIR is an environment variable that would
|
|
|
|
# correspond to the ./configure --prefix=$VORBIS_DIR
|
|
|
|
# used in building VORBIS.
|
|
|
|
#
|
2015-08-22 19:00:14 +02:00
|
|
|
# Created by Joe Thompson
|
2012-11-11 16:38:27 +01:00
|
|
|
|
2015-08-22 19:00:14 +02:00
|
|
|
find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
|
2012-11-11 16:38:27 +01:00
|
|
|
|
2015-08-22 19:00:14 +02:00
|
|
|
set(VORBIS_NAMES ${VORBIS_NAMES} vorbis)
|
|
|
|
find_library(VORBIS_LIBRARY NAMES ${VORBIS_NAMES})
|
2012-11-11 16:38:27 +01:00
|
|
|
|
2015-08-22 19:00:14 +02:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set VORBIS_FOUND to TRUE if
|
|
|
|
# all listed variables are TRUE
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBIS DEFAULT_MSG VORBIS_LIBRARY VORBIS_INCLUDE_DIR)
|
2012-11-11 16:38:27 +01:00
|
|
|
|
2015-08-22 19:00:14 +02:00
|
|
|
if(VORBIS_FOUND)
|
|
|
|
set(VORBIS_LIBRARIES ${VORBIS_LIBRARY})
|
|
|
|
endif()
|
2012-11-11 16:38:27 +01:00
|
|
|
|
2015-08-22 19:00:14 +02:00
|
|
|
mark_as_advanced(VORBIS_LIBRARY VORBIS_INCLUDE_DIR)
|