crosire / d3d8to9

A D3D8 pseudo-driver which converts API calls and bytecode shaders to equivalent D3D9 ones.
BSD 2-Clause "Simplified" License
927 stars 83 forks source link

Add CMake build tool support #121

Closed rafalh closed 3 years ago

rafalh commented 3 years ago

As a bonus fix some warnings from GCC (wrong order of initialization in constructor) and improve formatting (unnecessary space at the end of the line). I allowed optional build as a static library, may be useful if someone wants to embed your code into an executable (I was considering it myself). I also disabled some warnings from GCC because I wasn't sure if it would make sense to fix them (one would require to add virtual modifier to two destructors, another was about #pragma region, not sure if it can be ifdefed and still work in MSVC - both warnings are not a real bugs so disabling them is okay IMO). Also I used slightly different style of CMakeFile.txt than in your blink project: