is there a way to link static library in Cmakelist file?

25 Views Asked by At

Can anyone recommend a best way to link a third-party static library to a source file?

I am trying to link .a static binary library file to my source file. I have tried everything adding it json as an arg[] and adding to CMake, like other people have recommended, but some reason it is failing.

I am not sure what is the next option.

Thanks for your help in advance.!

I have tried several different options.

Option: 1

enter image description here

Option: 2

enter image description here

Option: 3

enter image description here

Here is the Error:

enter image description here

Here is the picture of my project tree:

enter image description here

0

There are 0 best solutions below