2 # Find the native JACK includes and library
4 # JACK_INCLUDE_DIRS, where to find jack.h, Set when
5 # JACK_INCLUDE_DIR is found.
6 # JACK_LIBRARIES, libraries to link against to use JACK.
7 # JACK_ROOT_DIR, The base directory to search for JACK.
8 # This can also be an environment variable.
9 # JACK_FOUND, If false, do not try to use JACK.
11 # also defined, but not for general use are
12 # JACK_LIBRARY, where to find the JACK library.
14 #=============================================================================
15 # Copyright 2011 Blender Foundation.
17 # Distributed under the OSI-approved BSD License (the "License");
18 # see accompanying file Copyright.txt for details.
20 # This software is distributed WITHOUT ANY WARRANTY; without even the
21 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 # See the License for more information.
23 #=============================================================================
25 # If JACK_ROOT_DIR was defined in the environment, use it.
26 IF(NOT JACK_ROOT_DIR AND NOT $ENV{JACK_ROOT_DIR} STREQUAL "")
27 SET(JACK_ROOT_DIR $ENV{JACK_ROOT_DIR})
34 /opt/local # DarwinPorts
38 FIND_PATH(JACK_INCLUDE_DIR
47 FIND_LIBRARY(JACK_LIBRARY
56 # handle the QUIETLY and REQUIRED arguments and set JACK_FOUND to TRUE if
57 # all listed variables are TRUE
58 INCLUDE(FindPackageHandleStandardArgs)
59 FIND_PACKAGE_HANDLE_STANDARD_ARGS(JACK DEFAULT_MSG
60 JACK_LIBRARY JACK_INCLUDE_DIR)
63 SET(JACK_LIBRARIES ${JACK_LIBRARY})
64 SET(JACK_INCLUDE_DIRS ${JACK_INCLUDE_DIR})