Files
test2/build_files/cmake/Modules/FindJack.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.5 KiB
CMake
Raw Normal View History

# SPDX-FileCopyrightText: 2011 Blender Authors
#
# SPDX-License-Identifier: BSD-3-Clause
# - Find JACK library
# Find the native JACK includes and library
2011-06-19 15:03:50 +00:00
# This module defines
# JACK_INCLUDE_DIRS, where to find jack.h, Set when
# JACK_INCLUDE_DIR is found.
# JACK_LIBRARIES, libraries to link against to use JACK.
# JACK_ROOT_DIR, The base directory to search for JACK.
2011-06-19 15:03:50 +00:00
# This can also be an environment variable.
# JACK_FOUND, If false, do not try to use JACK.
2011-06-19 15:03:50 +00:00
#
# also defined, but not for general use are
# JACK_LIBRARY, where to find the JACK library.
2011-06-19 15:03:50 +00:00
# If `JACK_ROOT_DIR` was defined in the environment, use it.
if(DEFINED JACK_ROOT_DIR)
# Pass.
elseif(DEFINED ENV{JACK_ROOT_DIR})
set(JACK_ROOT_DIR $ENV{JACK_ROOT_DIR})
else()
set(JACK_ROOT_DIR "")
endif()
2011-06-19 15:03:50 +00:00
set(_jack_SEARCH_DIRS
2011-06-19 15:03:50 +00:00
${JACK_ROOT_DIR}
)
find_path(JACK_INCLUDE_DIR
NAMES
jack.h
2011-06-19 15:03:50 +00:00
HINTS
${_jack_SEARCH_DIRS}
PATH_SUFFIXES
include/jack
)
find_library(JACK_LIBRARY
NAMES
jack
HINTS
${_jack_SEARCH_DIRS}
PATH_SUFFIXES
lib64 lib
)
2011-06-19 15:03:50 +00:00
2018-06-10 08:12:13 +02:00
# handle the QUIETLY and REQUIRED arguments and set JACK_FOUND to TRUE if
2011-06-19 15:03:50 +00:00
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Jack DEFAULT_MSG
2011-06-19 15:03:50 +00:00
JACK_LIBRARY JACK_INCLUDE_DIR)
if(JACK_FOUND)
set(JACK_LIBRARIES ${JACK_LIBRARY})
set(JACK_INCLUDE_DIRS ${JACK_INCLUDE_DIR})
endif()
2011-06-19 15:03:50 +00:00
mark_as_advanced(
2011-06-19 15:03:50 +00:00
JACK_INCLUDE_DIR
JACK_LIBRARY
)
unset(_jack_SEARCH_DIRS)