3
# - Try to find the Sparkle framework
4
# Once done this will define
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>
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>
16
include (CheckLibraryExists)
17
find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
18
find_library(SPARKLE_LIBRARY NAMES Sparkle)
20
if (SPARKLE_INCLUDE_DIR AND SPARKLE_LIBRARY)
21
set(SPARKLE_FOUND TRUE)
23
set(SPARKLE_FOUND FALSE)
27
if (NOT Sparkle_FIND_QUIETLY)
28
message(STATUS "Found Sparkle: ${SPARKLE_LIBRARY}")
31
if (Sparkle_FIND_REQUIRED)
32
message(FATAL_ERROR "Could NOT find Sparkle framework")
34
if (NOT Sparkle_FIND_QUIETLY)
35
message(STATUS "Could NOT find Sparkle framework, autoupdate feature will be disabled")