From cfdc6395d87f4313da95cd5ca98ad082d6f89a04 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 30 Jan 2014 12:57:33 +0100 Subject: [PATCH] Find sparkle the first time around --- cmake/modules/FindSparkle.cmake | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cmake/modules/FindSparkle.cmake diff --git a/cmake/modules/FindSparkle.cmake b/cmake/modules/FindSparkle.cmake new file mode 100644 index 0000000000..2c1e1944d5 --- /dev/null +++ b/cmake/modules/FindSparkle.cmake @@ -0,0 +1,23 @@ +# Find 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 +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. + +include(FindPackageHandleStandardArgs) + +find_path(SPARKLE_INCLUDE_DIR Sparkle.h) +find_library(SPARKLE_LIBRARY NAMES Sparkle) + +find_package_handle_standard_args(Sparkle DEFAULT_MSG SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY) +mark_as_advanced(SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY) +