microsoft / DirectXMesh

DirectXMesh geometry processing library
https://walbourn.github.io/directxmesh/
MIT License
786 stars 152 forks source link

CMake support added for building with MinGW #69

Closed walbourn closed 2 years ago

walbourn commented 2 years ago

Since DirectXMesh already supports building using GNUC for WSL, added CMakePresets for using MinGW as well:

x64-Debug-MinGW
x64-Release-MinGW
x86-Debug-MinGW
x86-Release-MinGW

Makes use of VCPKG for DirectXMath and DirectX-Headers since MinGW has a fairly minimal versions of these libraries. Requires the VCPKG_ROOT envvar set.

This is being done to improve compiler conformance for the code.

Also normalized preprocessor define use to _WIN32 and not WIN32.