cmake_modules/FindSparkle.cmake
author Wuzzy <Wuzzy2@mail.ru>
Thu, 15 Feb 2018 13:49:14 +0100
changeset 13007 8a8aaaf97a95
parent 8667 f93cc19d8b98
permissions -rw-r--r--
The rottags key alone now toggles hog tags; preecise+rottags is used to cycle tags I figured that the toggling hog tags on and off is a bit more important than changing the tag types, because you sometimes run into a hog whose tags block your view, so a 1-key press is helpful. On the other hand, you probably only want to changing the tag types in the game once (if at all).

# 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 <vittorio.giovara@gmail.com>
#
# 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)