mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
19 lines
367 B
CMake
19 lines
367 B
CMake
|
# Autodetect if xaudio2 can be used.
|
||
|
|
||
|
include(CheckCXXSourceCompiles)
|
||
|
set(CMAKE_REQUIRED_FLAGS "")
|
||
|
|
||
|
check_cxx_source_compiles("
|
||
|
#include <windows.h>
|
||
|
|
||
|
#undef NTDDI_VERSION
|
||
|
#undef _WIN32_WINNT
|
||
|
|
||
|
#define NTDDI_VERSION NTDDI_WIN8
|
||
|
#define _WIN32_WINNT _WIN32_WINNT_WIN8
|
||
|
|
||
|
#include <xaudio2.h>
|
||
|
int main() { return 0; }"
|
||
|
XAUDIO2_FOUND
|
||
|
)
|