Add: introduce CMake for project management
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.
Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.
This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.
Addtiionally, this heavily improves our detection of libraries, etc.
2019-04-07 09:57:55 +00:00
|
|
|
# Autodetect if xaudio2 can be used.
|
|
|
|
|
|
|
|
include(CheckCXXSourceCompiles)
|
|
|
|
set(CMAKE_REQUIRED_FLAGS "")
|
|
|
|
|
|
|
|
check_cxx_source_compiles("
|
2020-11-25 23:37:21 +00:00
|
|
|
#include <cstdio>
|
Add: introduce CMake for project management
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.
Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.
This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.
Addtiionally, this heavily improves our detection of libraries, etc.
2019-04-07 09:57:55 +00:00
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#undef NTDDI_VERSION
|
|
|
|
#undef _WIN32_WINNT
|
|
|
|
|
|
|
|
#define NTDDI_VERSION NTDDI_WIN8
|
|
|
|
#define _WIN32_WINNT _WIN32_WINNT_WIN8
|
|
|
|
|
|
|
|
#include <xaudio2.h>
|
2020-11-25 23:37:21 +00:00
|
|
|
int main() { printf(\"%s\\\\n\", XAUDIO2_DLL_A); return 0; }"
|
Add: introduce CMake for project management
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.
Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.
This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.
Addtiionally, this heavily improves our detection of libraries, etc.
2019-04-07 09:57:55 +00:00
|
|
|
XAUDIO2_FOUND
|
|
|
|
)
|