cmake_modules/FindSparkle.cmake
author dag10
Sat, 29 Dec 2012 22:50:10 +0100
changeset 8346 3443e0de2c9d
parent 7933 223b3a195474
child 8657 3a957233f459
permissions -rw-r--r--
GCI2012: Advanced Keyboard Configuration - Added "Controls" tab to settings, where you can set master game-wide controls. - Can revert master key bindings to game's default key bind. - Per-team binds now default to "Use my default", but you can override those binds if you want to. - New key binding interface. - Removed redundant second confirmation prompt for deleting a team. - Added "reset all binds" button to the binding interface in both the main settings and team settings. - I discovered that the reason keyboard camera controls were "broken" is because they were never implemented! But don't worry - I took care of that for you, too. :) (this also closes bug #120)

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