I'm writing some C++ code in iOS (objective-c++) and I would like to use libcpr to do some http requests. I would like to let XCode compile libcpr along with my source code and not generate a static .so before hand. Is this possible? If so could you detail the specific steps I would follow?
This is what I have in my mind:
- Add libpcr as a git submodule
- ??? Somehow tell Xcode to compile and include the source/header files in the submodule
- In my Obj-C code
#include <cpr/cpr.h>
and use the functions directly
Any pointers whatsoever are much appreciated.
[Edit 1]
At the very worst I would accept hooking CMake step into Xcode so it generates a .a or a .so that I can statically link. But really a noob with C++ tooling, so any help is greatly appreciated.