cmake_modules/FindSparkle.cmake
author nemo
Thu, 23 Jul 2009 18:48:41 +0000
changeset 2269 00f5704f5f39
parent 2261 57e99c908e7c
child 2395 d01d3bf3e1de
permissions -rw-r--r--
add extra semi-opaque layer of water to discolour objects in the water.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     1
### SuperTux - Removed unused vorbisenc library
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     2
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     3
# - Try to find the OggVorbis libraries
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     4
# Once done this will define
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     5
#
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     6
#  OGGVORBIS_FOUND - system has OggVorbis
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     7
#  OGGVORBIS_VERSION - set either to 1 or 2
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     8
#  OGGVORBIS_INCLUDE_DIR - the OggVorbis include directory
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     9
#  OGGVORBIS_LIBRARIES - The libraries needed to use OggVorbis
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    10
#  OGG_LIBRARY         - The Ogg library
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    11
#  VORBIS_LIBRARY      - The Vorbis library
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    12
#  VORBISFILE_LIBRARY  - The VorbisFile library
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    13
# Copyright (c) 2006, Richard Laerkaeng, <richard@goteborg.utfors.se>
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    14
#
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    15
# Redistribution and use is allowed according to the terms of the BSD license.
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    16
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    17
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    18
include (CheckLibraryExists)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    19
find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    20
find_library(SPARKLE_LIBRARY NAMES Sparkle)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    21
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    22
if (SPARKLE_INCLUDE_DIR AND SPARKLE_LIBRARY)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    23
   set(SPARKLE_FOUND TRUE)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    24
else ()
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    25
   set(SPARKLE_FOUND FALSE)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    26
endif ()
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    27
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    28
if (SPARKLE_FOUND)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    29
   if (NOT Sparkle_FIND_QUIETLY)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    30
      message(STATUS "Found Sparkle: ${SPARKLE_LIBRARY}")
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    31
   endif ()
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    32
else ()
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    33
   if (Sparkle_FIND_REQUIRED)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    34
      message(FATAL_ERROR "Could NOT find Sparkle framework")
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    35
   endif ()
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    36
   if (NOT Sparkle_FIND_QUIETLY)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    37
      message(STATUS "Could NOT find Sparkle framework")
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    38
   endif ()
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    39
endif ()
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    40