How to add custom library in nRFConnect in VSCode?

I added a custom library

 
As seen it is detected by the vscode intellisense or autosuggest?

And still shows undefined in compilation

Is their anything I should add in cmake or config or folder structure problem?

TIA

Related