How do I use .so file functions in my Android app’s native code?

  android, android-ndk, c++, cmake

I have seen similar questions but I’m not sure if it matches my question.

I have been provided a .so file, whose functions I want to call in my own C++ code. How do I link my cpp file to the .so file.I know how to directly link .so files to Java code via this.

Is there some way I can do this? I’m thinking something like linking via CMake. Is there some better way?

Please let me know if there’s a question like if it’s asked before.
Thanks in Advance.

Source: Windows Questions C++