source:
code/branches/buildsystem2/cmake/FindOgg.cmake
@
2631
Last change on this file since 2631 was 2628, checked in by rgrieder, 16 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[2626] | 1 | # - Try to find ogg |
[2509] | 2 | # Once done this will define |
3 | # | |
4 | # OGG_FOUND - system has ogg | |
5 | # OGG_INCLUDE_DIR | |
6 | # OGG_LIBRARY | |
7 | # | |
[2616] | 8 | # $OGGDIR is an environment variable used |
9 | # for finding ogg. | |
[2509] | 10 | # |
[1776] | 11 | # Several changes and additions by Fabian 'x3n' Landau |
[2509] | 12 | # Most of all rewritten by Adrian Friedli |
[2626] | 13 | # Debug versions and simplifications by Reto Grieder |
[1776] | 14 | # > www.orxonox.net < |
[1505] | 15 | |
[2583] | 16 | INCLUDE(FindPackageHandleStandardArgs) |
17 | INCLUDE(HandleLibraryTypes) | |
18 | ||
[1505] | 19 | FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h |
[2616] | 20 | PATHS $ENV{OGGDIR} |
[2509] | 21 | PATH_SUFFIXES include |
22 | ) | |
[1505] | 23 | FIND_PATH(VORBIS_INCLUDE_DIR vorbis/codec.h |
[2616] | 24 | PATHS $ENV{OGGDIR} |
[2509] | 25 | PATH_SUFFIXES include |
26 | ) | |
[2616] | 27 | FIND_LIBRARY(OGG_LIBRARY_OPTIMIZED |
28 | NAMES ogg | |
29 | PATHS $ENV{OGGDIR} | |
[2509] | 30 | PATH_SUFFIXES lib |
31 | ) | |
[2616] | 32 | FIND_LIBRARY(OGG_LIBRARY_DEBUG |
33 | NAMES oggd ogg_d | |
34 | PATHS $ENV{VORBISDIR} | |
[2509] | 35 | PATH_SUFFIXES lib |
36 | ) | |
[1505] | 37 | |
[2616] | 38 | # Handle the REQUIRED argument and set OGG_FOUND |
39 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ogg DEFAULT_MSG | |
[2628] | 40 | OGG_LIBRARY_OPTIMIZED |
[2616] | 41 | OGG_INCLUDE_DIR |
[2579] | 42 | ) |
[1505] | 43 | |
[2616] | 44 | # Collect optimized and debug libraries |
[2614] | 45 | HANDLE_LIBRARY_TYPES(OGG) |
[2579] | 46 | |
[2509] | 47 | MARK_AS_ADVANCED( |
[2616] | 48 | OGG_INCLUDE_DIR |
[2579] | 49 | OGG_LIBRARY_OPTIMIZED |
50 | OGG_LIBRARY_DEBUG | |
[2509] | 51 | ) |
Note: See TracBrowser
for help on using the repository browser.