Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.97k stars 412 forks source link

Improve cmake configuration for use as a library #121

Closed Luminiscental closed 3 years ago

Luminiscental commented 3 years ago

These are some small quality-of-life improvements for anyone using the library from cmake:

The install option is a pretty idiomatic pattern for cmake libraries (e.g. freetype uses it, as do glfw, glad and a number of other large libraries). The check for an existing freetype target simply provides an option for more stability if people want it, and otherwise doesn't interefere, so I think it's also worth adding.