These are some small quality-of-life improvements for anyone using the library from cmake:
Users can provide a specific version of the freetype library which will be used instead of the system default.
Users can control whether targets are installed/exported through an option.
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.
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.