0 votes

I want to include a 3-rd party library to my С++ module. How could I do this?

asked Feb 9, 2017 in Engine by Kovalski (83 points)

I'm not into modules (yet) but if you don't have the source, look at this steam module to see how external libraries are used https://github.com/Mavhod/GodotSteam

1 Answer

0 votes
Best answer

The simplest way is to include the sources of your library in your module. If your library doesn't let you do that for license reasons, I guess you should take a look at how SCons handles it (I'm not an expert on this).

You can take model on existing modules to see how things are done. In the case of FreeType, for example, the library was added in the thirdparty folder of Godot (still in source format though).

answered Feb 9, 2017 by Zylann (21,603 points)
selected Feb 11, 2017 by Kovalski

Thanks! I took the simplest way :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.