A sample repo on how to use functions in weilei_lib. One can fork this one and use it as a starting point
I use weilei_lib as a submodule here. It works like two repo, but just one inside the other. One should commit changes independently. To clone it, use the following cmd.
git clone --recurse-submodules https://github.com/QEC-pages/how-to-use-weilei-lib
You can test it by
make test_lib
make test
see https://git-scm.com/book/en/v2/Git-Tools-Submodules
init:
git submodule add [email protected]:WeileiZeng/weilei_lib.git
You can also use http instead of ssh
Then you work on those like two different repo.