diff options
author | Chris Robinson <[email protected]> | 2014-04-19 06:35:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-19 06:35:14 -0700 |
commit | 887763e41c953b91105bba119da7a7265815f5e0 (patch) | |
tree | 8443332ee06bf28e78fe5e34baf66e55b18b42a5 /cmake/FindAudioIO.cmake | |
parent | 1d266aa8347fadfb0db34ae27df7b728c0ab2171 (diff) |
Use find cmake modules for more backends
Diffstat (limited to 'cmake/FindAudioIO.cmake')
-rw-r--r-- | cmake/FindAudioIO.cmake | 21 |
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) |