cmake_modules/FindSparkle.cmake
author nemo
Thu, 28 Feb 2013 23:15:33 -0500
changeset 8617 e7bea88096d2
parent 7933 223b3a195474
child 8657 3a957233f459
permissions -rw-r--r--
So. A while ago, while trying to prevent hogs blowtorching getting turned around, unc0rr altered the old range of blowtorch from 1/8th of 180° up or down, to a 4° gain in upwards and a -4° loss in downwards. He also made it so that starting tunnels could fail to erase sufficient terrain, trapping hogs. Here are a couple of workarounds to more closely approximate old behaviour (do some initial erasure, adjust min/max angles)

### 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 ()