aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindAudioIO.cmake
blob: f0f8b2a59aff1f6e9987ef5d80f70da0b4008016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# - Find AudioIO includes and libraries
#
#   AUDIOIO_FOUND        - True if AUDIOIO_INCLUDE_DIR is found
#   AUDIOIO_INCLUDE_DIRS - Set when AUDIOIO_INCLUDE_DIR is found
#
#   AUDIOIO_INCLUDE_DIR - where to find sys/audioio.h, etc.
#

find_path(AUDIOIO_INCLUDE_DIR
          NAMES sys/audioio.h
          DOC "The AudioIO include directory"
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(AudioIO  REQUIRED_VARS AUDIOIO_INCLUDE_DIR)

if(AUDIOIO_FOUND)
    set(AUDIOIO_INCLUDE_DIRS ${AUDIOIO_INCLUDE_DIR})
endif()

mark_as_advanced(AUDIOIO_INCLUDE_DIR)