I am totally new to CMake and using NDK in common. I figured out to write my JNI interface and use 2 methods which are part of a C library. I compiled this library as a static library and got the .a file. Now I'm a little bit lost as I don't understand how to tell Android Studio to use this library when trying to find the called functions.

This is my current CMakeLists.txt which is located in the "app" module folder.

```
cmake_minimum_required(VERSION 3.4.1)

add_library(my-lib SHARED src/main/cpp/my-lib.cpp )

target_link_libraries(my-lib z crypto)

target_link_libraries(my-lib ${CMAKE_CURRENT_SOURCE_DIR}/../libs/libmine.a)

```

On compilation I get the warning that no reference can be found to the called functions. Is my CMakeLists.txt correct and how do I include the .h file for the functions? Thanks in advance for any help!