Chlumsky / msdf-atlas-gen

MSDF font atlas generator
MIT License
744 stars 170 forks source link

Header path incorrect when linking to outside msdfgen #103

Open robindegen opened 2 weeks ago

robindegen commented 2 weeks ago

When installing msdfgen (and packaging it); all headers are in a subdirectory; for example: include/msdfgen/msdfgen.h

However; msdf-atlas-gen assumes they're in the root:

include

This causes problems when trying to neatly package the libraries into tools like Conan. Ofcourse I can move headers around before packaging but that's a little odd.

Chlumsky commented 2 weeks ago

I think it should just be added to include path rather than moving the files.

robindegen commented 2 weeks ago

That's how I worked around it yes. But that doesn't really work in all circumstances since its non-standard. If you cmake install onto the system directly and then use a findscript; it still wouldn't be able to find them; especially if you throw something like autotools into the mix.

I wouldn't suggest moving the files though; that would just cause clutter. I would suggest to include them as #include <msdfgen/msdfgen.h> in atlas-gen as they are deployed that way.