Basically, what you would need to do is add a systemLibrary
target to your package, that pulls in the necessary #include
files through an Umbrella Header, and links against the relevant library. Here is an article that explains this in more detail:
You might want to scroll down to the section that is titled "How to use C system libraries from Swift?" if you are not interested in building your own C library in SPM.