aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindAudioIO.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindAudioIO.cmake')
-rw-r--r--cmake/FindAudioIO.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/FindAudioIO.cmake b/cmake/FindAudioIO.cmake
new file mode 100644
index 00000000..f0f8b2a5
--- /dev/null
+++ b/cmake/FindAudioIO.cmake
@@ -0,0 +1,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)