8657
+ − 1
# Find Sparkle.framework
+ − 2
#
2261
+ − 3
# Once done this will define
2395
+ − 4
# SPARKLE_FOUND - system has Sparkle
+ − 5
# SPARKLE_INCLUDE_DIR - the Sparkle include directory
+ − 6
# SPARKLE_LIBRARY - The library needed to use Sparkle
8667
+ − 7
# Copyright (c) 2009, Vittorio Giovara <vittorio.giovara@gmail.com>
2261
+ − 8
#
8657
+ − 9
# Distributed under the OSI-approved BSD License (the "License");
+ − 10
# see accompanying file Copyright.txt for details.
+ − 11
#
+ − 12
# This software is distributed WITHOUT ANY WARRANTY; without even the
+ − 13
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ − 14
# See the License for more information.
2395
+ − 15
8657
+ − 16
include(FindPackageHandleStandardArgs)
2261
+ − 17
+ − 18
find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
+ − 19
find_library(SPARKLE_LIBRARY NAMES Sparkle)
+ − 20
8657
+ − 21
find_package_handle_standard_args(Sparkle DEFAULT_MSG SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
+ − 22
mark_as_advanced(SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
2261
+ − 23