KStocky / ShaderTestFramework

An automation testing framework for testing shader code
MIT License
20 stars 1 forks source link

Ninja generator support #120

Closed KStocky closed 1 week ago

KStocky commented 2 weeks ago

Is your feature request related to a problem? Please describe. Ninja builds are MUCH faster than straight VS builds. It still uses MSVC for the compiler. It can build Catch2 with Unity build in about 3 seconds. Compared to nearly 30 seconds with the Visual Studio 17 2022 generator. For Shader Test Framework Tests in SlimDevDebug it takes: Ninja: 60 seconds VS 2022: 332 seconds

It is insanely fast.

Describe the solution you'd like Add the ninja generator option to the CMakePreset.json and fix any issue that might come up in my CMake files. I do assume Visual Studio is the only generator so I imagine there are a fair few issues that would crop up.

Additional context

CMake in VS docs