🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.5 KiB

  1. # - Find JACK
  2. # Find the JACK libraries
  3. #
  4. # This module defines the following variables:
  5. # JACK_FOUND - True if JACK_INCLUDE_DIR & JACK_LIBRARY are found
  6. # JACK_INCLUDE_DIRS - where to find jack.h, etc.
  7. # JACK_LIBRARIES - the jack library
  8. #
  9. #=============================================================================
  10. # Copyright 2009-2011 Kitware, Inc.
  11. # Copyright 2009-2011 Philip Lowman <philip@yhbt.com>
  12. #
  13. # Redistribution and use in source and binary forms, with or without
  14. # modification, are permitted provided that the following conditions are
  15. # met:
  16. #
  17. # * Redistributions of source code must retain the above copyright notice,
  18. # this list of conditions and the following disclaimer.
  19. #
  20. # * Redistributions in binary form must reproduce the above copyright notice,
  21. # this list of conditions and the following disclaimer in the documentation
  22. # and/or other materials provided with the distribution.
  23. #
  24. # * The names of Kitware, Inc., the Insight Consortium, or the names of
  25. # any consortium members, or of any contributors, may not be used to
  26. # endorse or promote products derived from this software without
  27. # specific prior written permission.
  28. #
  29. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
  30. # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  31. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  32. # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
  33. # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  34. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  35. # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  36. # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  37. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  38. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. #=============================================================================
  40. find_path(JACK_INCLUDE_DIR NAMES jack/jack.h
  41. DOC "The JACK include directory"
  42. )
  43. find_library(JACK_LIBRARY NAMES jack
  44. DOC "The JACK library"
  45. )
  46. # handle the QUIETLY and REQUIRED arguments and set JACK_FOUND to TRUE if
  47. # all listed variables are TRUE
  48. include(FindPackageHandleStandardArgs)
  49. find_package_handle_standard_args(JACK REQUIRED_VARS JACK_LIBRARY JACK_INCLUDE_DIR)
  50. if(JACK_FOUND)
  51. set(JACK_LIBRARIES ${JACK_LIBRARY})
  52. set(JACK_INCLUDE_DIRS ${JACK_INCLUDE_DIR})
  53. endif()
  54. mark_as_advanced(JACK_INCLUDE_DIR JACK_LIBRARY)