Aegisub/cmake/FindXAudio2redist.cmake
wangqr e5f543c1ab Add support for XAudio2 redistributable
Bundle XAudio2 to better support Win7

Fix wangqr/Aegisub#59
2020-07-20 16:16:20 -04:00

13 lines
322 B
CMake

find_path(XAudio2redist_INCLUDE_DIRS
NAMES xaudio2redist.h
)
find_library(XAudio2redist_LIBRARIES
NAMES xaudio2_9redist
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(XAudio2redist
FOUND_VAR XAudio2redist_FOUND
REQUIRED_VARS
XAudio2redist_LIBRARIES
XAudio2redist_INCLUDE_DIRS
)