FindSparkle.cmake 851 B

1234567891011121314151617181920212223
  1. # Find Sparkle.framework
  2. #
  3. # Once done this will define
  4. # SPARKLE_FOUND - system has Sparkle
  5. # SPARKLE_INCLUDE_DIR - the Sparkle include directory
  6. # SPARKLE_LIBRARY - The library needed to use Sparkle
  7. # Copyright (c) 2009, Vittorio Giovara <vittorio.giovara@gmail.com>
  8. #
  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.
  15. include(FindPackageHandleStandardArgs)
  16. find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
  17. find_library(SPARKLE_LIBRARY NAMES Sparkle)
  18. find_package_handle_standard_args(Sparkle DEFAULT_MSG SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
  19. mark_as_advanced(SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)