cmake_modules/FindSparkle.cmake
author nemo
Tue, 30 Mar 2010 13:33:01 +0000
changeset 3173 909b28b1b61a
parent 2395 d01d3bf3e1de
child 7933 223b3a195474
permissions -rw-r--r--
This map has always been broken. This variant makes it slightly less broken (although something changed on the ceiling might prevent hiding on pixels on the slope). What will finally fix it is either moving nets closer together or adding angle bounce to hedgehogs or some other layout that prevents hiding.

### Hedgewars

# - Try to find the Sparkle framework
# Once done this will define
#
#  SPARKLE_FOUND - system has Sparkle
#  SPARKLE_INCLUDE_DIR - the Sparkle include directory
#  SPARKLE_LIBRARY - The library needed to use Sparkle
# Copyright (c) 2009, Vittorio Giovara, <vittorio.giovara@gmail.com>
#
# Redistribution and use is allowed according to the terms of a Creative Commons license.
# For details see http://creativecommons.org/licenses/by-sa/3.0/
# original version of this module was derived from Richard Laerkaeng, <richard@goteborg.utfors.se>


include (CheckLibraryExists)
find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
find_library(SPARKLE_LIBRARY NAMES Sparkle)

if (SPARKLE_INCLUDE_DIR AND SPARKLE_LIBRARY)
   set(SPARKLE_FOUND TRUE)
else ()
   set(SPARKLE_FOUND FALSE)
endif ()

if (SPARKLE_FOUND)
   if (NOT Sparkle_FIND_QUIETLY)
      message(STATUS "Found Sparkle: ${SPARKLE_LIBRARY}")
   endif ()
else ()
   if (Sparkle_FIND_REQUIRED)
      message(FATAL_ERROR "Could NOT find Sparkle framework")
   else ()
      if (NOT Sparkle_FIND_QUIETLY)
         message(STATUS "Could NOT find Sparkle framework, autoupdate feature will be disabled")
      endif()
   endif ()
endif ()