This PR is a follow-up for #122 and fixes dxcore header files compile
warning with CLang by removing semicolons from
DEFINE_ENUM_FLAG_OPERATORS statements.
Applications which use the DirectX header files in the Windows SDK typically use the /winsysroot command line argument. Winsysroot conveniently ignores warnings in header files.
Applications that wish to take an additional dependency on https://github.com/microsoft/directx-headers cannot leverage /winsysroot because you can only have one /winsysroot.
This change makes DirectX header files compile warning free with CLang by removing semicolons from DEFINE_ENUM_FLAG_OPERATORS statements.
Co-authored-by: Rafael Cintron <rcintron@microsoft.com>
* Fix: removed d3d12_lib from main meson.build, so it could be builded on linux
* Fix: better d3d12_lib OS check
* Fix: remove abundant d3d12 checks from tests meson.build files
1. Googletests subdir was added. This requires GTest to be installed. If it is not installed, it's skipped
2. Moved some local variables to the main file to prevent duplicate library_finds and problems that can occur with local calculations.
1. Minor fix - add URL to pkg-config file
2. When building tests, make dxcore optional if not using "msvc"
3. programs in test directory now build even on Windows.
4. Compile DirectX-Headers-Check-Feature-Support-Test.exe if tests are on
5. Use test() statements to add DirectX-Headers-Test.exe and DirectX-Headers-Check-Feature-Support-Test.exe to "test" build target (typically invoked with something like "ninja test" or "make test".
1. Do NOT install the GoogleTest files (run-time files, pkg-config files, static-link-libraries, etc.) when installing DirectX-Headers. MSYS2 and many Linux distributions already have GoogleTest in downloadable packages.
2. Run the included tests with CTest (see: https://cmake.org/cmake/help/book/mastering-cmake/chapter/Testing%20With%20CMake%20and%20CTest.html ) to facilitate automated testing in package build processes. This adds a BUILD_TESTING option that is standard for many CMake projects. If that option is off, no tests are built or could be executing using CTest (a standard behavior).