Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/consolecommands3/cmake/tools/FindOgg.cmake @ 7429

Last change on this file since 7429 was 7163, checked in by dafrick, 14 years ago

Merged presentation3 branch into trunk.

  • Property svn:eol-style set to native
File size: 1008 bytes
Line 
1# - Try to find ogg
2# Once done this will define
3#
4#  OGG_FOUND - system has ogg
5#  OGG_INCLUDE_DIR
6#  OGG_LIBRARY
7#
8# $OGGDIR is an environment variable used
9# for finding ogg.
10#
11# Several changes and additions by Fabian 'x3n' Landau
12# Most of all rewritten by Adrian Friedli
13# Debug versions and simplifications by Reto Grieder
14#                 > www.orxonox.net <
15
16INCLUDE(FindPackageHandleStandardArgs)
17INCLUDE(HandleLibraryTypes)
18
19FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h
20  PATHS $ENV{OGGDIR}
21  PATH_SUFFIXES include
22)
23FIND_LIBRARY(OGG_LIBRARY_OPTIMIZED
24  NAMES ogg
25  PATHS $ENV{OGGDIR}
26  PATH_SUFFIXES lib
27)
28FIND_LIBRARY(OGG_LIBRARY_DEBUG
29  NAMES oggd ogg_d oggD ogg_D
30  PATHS $ENV{OGGDIR}
31  PATH_SUFFIXES lib
32)
33
34# Handle the REQUIRED argument and set OGG_FOUND
35FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ogg DEFAULT_MSG
36  OGG_LIBRARY_OPTIMIZED
37  OGG_INCLUDE_DIR
38)
39
40# Collect optimized and debug libraries
41HANDLE_LIBRARY_TYPES(OGG)
42
43MARK_AS_ADVANCED(
44  OGG_INCLUDE_DIR
45  OGG_LIBRARY_OPTIMIZED
46  OGG_LIBRARY_DEBUG
47)
Note: See TracBrowser for help on using the repository browser.