From dd49396429084344f5cb3b578756e9240fa84977 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 26 Aug 2015 19:06:38 -0700 Subject: [PATCH] doc: add FindSoundIo.cmake example file --- doc/FindSoundIo.cmake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/FindSoundIo.cmake diff --git a/doc/FindSoundIo.cmake b/doc/FindSoundIo.cmake new file mode 100644 index 0000000..0d905ec --- /dev/null +++ b/doc/FindSoundIo.cmake @@ -0,0 +1,16 @@ +# Copyright (c) 2015 Andrew Kelley +# This file is MIT licensed. +# See http://opensource.org/licenses/MIT + +# SOUNDIO_FOUND +# SOUNDIO_INCLUDE_DIR +# SOUNDIO_LIBRARY + +find_path(SOUNDIO_INCLUDE_DIR NAMES soundio/soundio.h) + +find_library(SOUNDIO_LIBRARY NAMES soundio) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(SOUNDIO DEFAULT_MSG SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR) + +mark_as_advanced(SOUNDIO_INCLUDE_DIR SOUNDIO_LIBRARY)