cmake_modules/FindSparkle.cmake
changeset 2261 57e99c908e7c
child 2395 d01d3bf3e1de
equal deleted inserted replaced
2260:31756e21c436 2261:57e99c908e7c
       
     1 ### SuperTux - Removed unused vorbisenc library
       
     2 
       
     3 # - Try to find the OggVorbis libraries
       
     4 # Once done this will define
       
     5 #
       
     6 #  OGGVORBIS_FOUND - system has OggVorbis
       
     7 #  OGGVORBIS_VERSION - set either to 1 or 2
       
     8 #  OGGVORBIS_INCLUDE_DIR - the OggVorbis include directory
       
     9 #  OGGVORBIS_LIBRARIES - The libraries needed to use OggVorbis
       
    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 #
       
    15 # Redistribution and use is allowed according to the terms of the BSD license.
       
    16 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
       
    17 
       
    18 include (CheckLibraryExists)
       
    19 find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
       
    20 find_library(SPARKLE_LIBRARY NAMES Sparkle)
       
    21 
       
    22 if (SPARKLE_INCLUDE_DIR AND SPARKLE_LIBRARY)
       
    23    set(SPARKLE_FOUND TRUE)
       
    24 else ()
       
    25    set(SPARKLE_FOUND FALSE)
       
    26 endif ()
       
    27 
       
    28 if (SPARKLE_FOUND)
       
    29    if (NOT Sparkle_FIND_QUIETLY)
       
    30       message(STATUS "Found Sparkle: ${SPARKLE_LIBRARY}")
       
    31    endif ()
       
    32 else ()
       
    33    if (Sparkle_FIND_REQUIRED)
       
    34       message(FATAL_ERROR "Could NOT find Sparkle framework")
       
    35    endif ()
       
    36    if (NOT Sparkle_FIND_QUIETLY)
       
    37       message(STATUS "Could NOT find Sparkle framework")
       
    38    endif ()
       
    39 endif ()
       
    40