Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/cmake/FindOgg.cmake @ 2637

Last change on this file since 2637 was 2628, checked in by rgrieder, 16 years ago

Small fixes:

  • CheckOGREPlugins wasn't handling debug libraries correctly
  • OpenAL was missig the "Found OpenAL" message
  • changed all find scripts to show the library in the output instead of the include directory
  • Run script gets overridden by force
  • Also copy run script to the bin folder
  • Property svn:eol-style set to native
File size: 1.1 KB
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_PATH(VORBIS_INCLUDE_DIR vorbis/codec.h
24  PATHS $ENV{OGGDIR}
25  PATH_SUFFIXES include
26)
27FIND_LIBRARY(OGG_LIBRARY_OPTIMIZED
28  NAMES ogg
29  PATHS $ENV{OGGDIR}
30  PATH_SUFFIXES lib
31)
32FIND_LIBRARY(OGG_LIBRARY_DEBUG
33  NAMES oggd ogg_d
34  PATHS $ENV{VORBISDIR}
35  PATH_SUFFIXES lib
36)
37
38# Handle the REQUIRED argument and set OGG_FOUND
39FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ogg DEFAULT_MSG
40  OGG_LIBRARY_OPTIMIZED
41  OGG_INCLUDE_DIR
42)
43
44# Collect optimized and debug libraries
45HANDLE_LIBRARY_TYPES(OGG)
46
47MARK_AS_ADVANCED(
48  OGG_INCLUDE_DIR
49  OGG_LIBRARY_OPTIMIZED
50  OGG_LIBRARY_DEBUG
51)
Note: See TracBrowser for help on using the repository browser.