cmake_modules/FindSparkle.cmake
author sheepluva
Fri, 01 Apr 2016 15:36:19 +0200
changeset 11642 c82a0a886779
parent 8667 f93cc19d8b98
permissions -rw-r--r--
merging 5 of Wuzzy's 6 patches. review for last patch pending (hwp content changes)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
     1
# Find Sparkle.framework
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
     2
#
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     3
# Once done this will define
2395
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
     4
#  SPARKLE_FOUND - system has Sparkle
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
     5
#  SPARKLE_INCLUDE_DIR - the Sparkle include directory
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
     6
#  SPARKLE_LIBRARY - The library needed to use Sparkle
8667
f93cc19d8b98 comas and capitals
koda
parents: 8657
diff changeset
     7
# Copyright (c) 2009, Vittorio Giovara <vittorio.giovara@gmail.com>
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     8
#
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
     9
# Distributed under the OSI-approved BSD License (the "License");
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    10
# see accompanying file Copyright.txt for details.
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    11
#
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    12
# This software is distributed WITHOUT ANY WARRANTY; without even the
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    13
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    14
# See the License for more information.
2395
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
    15
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    16
include(FindPackageHandleStandardArgs)
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    17
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    18
find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    19
find_library(SPARKLE_LIBRARY NAMES Sparkle)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    20
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    21
find_package_handle_standard_args(Sparkle DEFAULT_MSG SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    22
mark_as_advanced(SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    23