Gradle C and so libs

I want to compile a C code with linked native .so file. Where on file system should I place my .so file to be picked by the build script? My Build script:

apply plugin: 'c'
model {
    components {
         main(NativeExecutableSpec) {
             sources {
                c.lib library: "mylib"

Running this i get error

NativeLibrarySpec with name ‘libmylapssdk’ not found

If ‘mylib’ is something you don’t build, you would add it as a pre-built library: