d83671314c
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6086 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 119f17bc22375f9226b737441418f81c775d9137 Former-commit-id: facfb1056885ecead44debfd78632a1ffa9252a8
27 lines
777 B
CMake
27 lines
777 B
CMake
# Locate OGG libraries ()
|
|
# This module defines
|
|
# OGG_LIBRARY : list of lib names
|
|
# OGG_FOUND : if false, do not try to link to OGG
|
|
# OGG_INCLUDE_DIR : where to find the headers
|
|
#
|
|
# $OGG_DIR is an environment variable that would
|
|
# correspond to the ./configure --prefix=$OGG_DIR
|
|
# used in building OGG.
|
|
#
|
|
# Created by Joe Thompson
|
|
|
|
find_path(OGG_INCLUDE_DIR ogg/ogg.h)
|
|
|
|
set(OGG_NAMES ${OGG_NAMES} ogg)
|
|
find_library(OGG_LIBRARY NAMES ${OGG_NAMES})
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set OGG_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGG DEFAULT_MSG OGG_LIBRARY OGG_INCLUDE_DIR)
|
|
|
|
if(OGG_FOUND)
|
|
set(OGG_LIBRARIES ${OGG_LIBRARY})
|
|
endif()
|
|
|
|
mark_as_advanced(OGG_LIBRARY OGG_INCLUDE_DIR)
|