Not sure I follow.
But after building the application
It sound like you can build the application.
If this is true, then your lib is linked as it should, otherwise the linker would complain.

I guess what is not so clear is what do you mean with "adding" the lib.
More information would help.

It sound more like your are trying the open an *.so file with your application.
Is that the case?