source:
code/branches/kicklib/cmake/tools/FindOgg.cmake
@
8545
Last change on this file since 8545 was 8221, checked in by rgrieder, 14 years ago | |
---|---|
|
|
File size: 1.0 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 | ) | |
[2616] | 23 | FIND_LIBRARY(OGG_LIBRARY_OPTIMIZED |
[8221] | 24 | NAMES ogg ogg-0 libogg |
[2616] | 25 | PATHS $ENV{OGGDIR} |
[2509] | 26 | PATH_SUFFIXES lib |
27 | ) | |
[2616] | 28 | FIND_LIBRARY(OGG_LIBRARY_DEBUG |
[8221] | 29 | NAMES oggd ogg_d oggD ogg_D libogg_d |
[2648] | 30 | PATHS $ENV{OGGDIR} |
[2509] | 31 | PATH_SUFFIXES lib |
32 | ) | |
[1505] | 33 | |
[2616] | 34 | # Handle the REQUIRED argument and set OGG_FOUND |
35 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ogg DEFAULT_MSG | |
[2628] | 36 | OGG_LIBRARY_OPTIMIZED |
[2616] | 37 | OGG_INCLUDE_DIR |
[2579] | 38 | ) |
[1505] | 39 | |
[2616] | 40 | # Collect optimized and debug libraries |
[2614] | 41 | HANDLE_LIBRARY_TYPES(OGG) |
[2579] | 42 | |
[2509] | 43 | MARK_AS_ADVANCED( |
[2616] | 44 | OGG_INCLUDE_DIR |
[2579] | 45 | OGG_LIBRARY_OPTIMIZED |
46 | OGG_LIBRARY_DEBUG | |
[2509] | 47 | ) |
Note: See TracBrowser
for help on using the repository browser.