1 ### SuperTux - Removed unused vorbisenc library |
1 ### Hedgewars |
2 |
2 |
3 # - Try to find the OggVorbis libraries |
3 # - Try to find the Sparkle framework |
4 # Once done this will define |
4 # Once done this will define |
5 # |
5 # |
6 # OGGVORBIS_FOUND - system has OggVorbis |
6 # SPARKLE_FOUND - system has Sparkle |
7 # OGGVORBIS_VERSION - set either to 1 or 2 |
7 # SPARKLE_INCLUDE_DIR - the Sparkle include directory |
8 # OGGVORBIS_INCLUDE_DIR - the OggVorbis include directory |
8 # SPARKLE_LIBRARY - The library needed to use Sparkle |
9 # OGGVORBIS_LIBRARIES - The libraries needed to use OggVorbis |
9 # Copyright (c) 2009, Vittorio Giovara, <vittorio.giovara@gmail.com> |
10 # OGG_LIBRARY - The Ogg library |
|
11 # VORBIS_LIBRARY - The Vorbis library |
|
12 # VORBISFILE_LIBRARY - The VorbisFile library |
|
13 # Copyright (c) 2006, Richard Laerkaeng, <richard@goteborg.utfors.se> |
|
14 # |
10 # |
15 # Redistribution and use is allowed according to the terms of the BSD license. |
11 # Redistribution and use is allowed according to the terms of a Creative Commons license. |
16 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. |
12 # For details see http://creativecommons.org/licenses/by-sa/3.0/ |
|
13 # original version of this module was derived from Richard Laerkaeng, <richard@goteborg.utfors.se> |
|
14 |
17 |
15 |
18 include (CheckLibraryExists) |
16 include (CheckLibraryExists) |
19 find_path(SPARKLE_INCLUDE_DIR Sparkle.h) |
17 find_path(SPARKLE_INCLUDE_DIR Sparkle.h) |
20 find_library(SPARKLE_LIBRARY NAMES Sparkle) |
18 find_library(SPARKLE_LIBRARY NAMES Sparkle) |
21 |
19 |
30 message(STATUS "Found Sparkle: ${SPARKLE_LIBRARY}") |
28 message(STATUS "Found Sparkle: ${SPARKLE_LIBRARY}") |
31 endif () |
29 endif () |
32 else () |
30 else () |
33 if (Sparkle_FIND_REQUIRED) |
31 if (Sparkle_FIND_REQUIRED) |
34 message(FATAL_ERROR "Could NOT find Sparkle framework") |
32 message(FATAL_ERROR "Could NOT find Sparkle framework") |
35 endif () |
33 else () |
36 if (NOT Sparkle_FIND_QUIETLY) |
34 if (NOT Sparkle_FIND_QUIETLY) |
37 message(STATUS "Could NOT find Sparkle framework") |
35 message(STATUS "Could NOT find Sparkle framework, autoupdate feature will be disabled") |
|
36 endif() |
38 endif () |
37 endif () |
39 endif () |
38 endif () |
40 |
39 |