Ld undefined reference with neighboring directory

If you instead want to add an additional single library

Thank you. It works. Also changed #include <../share/mylib.h> to #include <mylib.h>.

Is it possible to set library path in IDE for this proj?