2395
+ − 1
### Hedgewars
2261
+ − 2
2395
+ − 3
# - Try to find the Sparkle framework
2261
+ − 4
# Once done this will define
+ − 5
#
2395
+ − 6
# SPARKLE_FOUND - system has Sparkle
+ − 7
# SPARKLE_INCLUDE_DIR - the Sparkle include directory
+ − 8
# SPARKLE_LIBRARY - The library needed to use Sparkle
+ − 9
# Copyright (c) 2009, Vittorio Giovara, <vittorio.giovara@gmail.com>
2261
+ − 10
#
2395
+ − 11
# Redistribution and use is allowed according to the terms of a Creative Commons license.
+ − 12
# For details see http://creativecommons.org/licenses/by-sa/3.0/
+ − 13
# original version of this module was derived from Richard Laerkaeng, <richard@goteborg.utfors.se>
+ − 14
2261
+ − 15
+ − 16
include (CheckLibraryExists)
+ − 17
find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
+ − 18
find_library(SPARKLE_LIBRARY NAMES Sparkle)
+ − 19
+ − 20
if (SPARKLE_INCLUDE_DIR AND SPARKLE_LIBRARY)
+ − 21
set(SPARKLE_FOUND TRUE)
+ − 22
else ()
+ − 23
set(SPARKLE_FOUND FALSE)
+ − 24
endif ()
+ − 25
+ − 26
if (SPARKLE_FOUND)
+ − 27
if (NOT Sparkle_FIND_QUIETLY)
+ − 28
message(STATUS "Found Sparkle: ${SPARKLE_LIBRARY}")
+ − 29
endif ()
+ − 30
else ()
+ − 31
if (Sparkle_FIND_REQUIRED)
+ − 32
message(FATAL_ERROR "Could NOT find Sparkle framework")
2395
+ − 33
else ()
+ − 34
if (NOT Sparkle_FIND_QUIETLY)
+ − 35
message(STATUS "Could NOT find Sparkle framework, autoupdate feature will be disabled")
+ − 36
endif()
2261
+ − 37
endif ()
+ − 38
endif ()
+ − 39