I'm testing your project right now. Could be nice to create a pkg-config file like in: https://github.com/sebastiandev/zipper/blob/master/zipper.pc.cmakein Or for Makefile: https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L165 sudo make install will install it: https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L181 https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L63 (not sure this is working well for Mac) So in your readme instead of: ``` g++ -std=c++11 -I/path/to/header -L/path/to/lib -lipfs-http-client myprog.cc -o myprog ``` Could be replaced by: ``` g++ -std=c++11 myprog.cc -o myprog `pkg-config --cflags --libs ipfs-http-client` ``` In addition in your command `-lipfs-http-client` is misplaced and `-lcurl` is missing. The pkg-config will contain the `-lcurl` code
I'm testing your project right now.
Could be nice to create a pkg-config file like in:
https://github.com/sebastiandev/zipper/blob/master/zipper.pc.cmakein
Or for Makefile:
https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L165
sudo make install will install it:
https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L181
https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L63
(not sure this is working well for Mac)
So in your readme instead of:
Could be replaced by:
In addition in your command
-lipfs-http-clientis misplaced and-lcurlis missing. The pkg-config will contain the-lcurlcode