cmake_minimum_required(VERSION 3.4.1)  # for example
# find_library( # Defines the name of the path variable that stores the
#               # location of the NDK library.
#               log-lib
#               # Specifies the name of the NDK library that
#               # CMake needs to locate.
#               log )

add_library(native-lib
        # Sets the library as a shared library.
        SHARED
        # Provides a relative path to your source file(s).
        app/src/main/cpp/dart_api_dl.c
        app/src/main/cpp/native-lib.cpp)

target_link_libraries(
        native-lib
        log )