libsoundio/cmake/FindWASAPI.cmake
2015-08-10 23:18:08 -07:00

16 lines
367 B
CMake

# Copyright (c) 2015 Andrew Kelley
# This file is MIT licensed.
# See http://opensource.org/licenses/MIT
# WASAPI_FOUND
# WASAPI_INCLUDE_DIR
if (WIN32)
find_path(WASAPI_INCLUDE_DIR NAMES audioclient.h)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WASAPI DEFAULT_MSG WASAPI_INCLUDE_DIR)
mark_as_advanced(WASAPI_INCLUDE_DIR)