So I started an android ndk project, and added a new module another_lib in addition to the native-lib that comes with the new project, I have a cmakelists.txt file in as shown and the content is:
cmake_minimum_required(VERSION 3.4.1)
add_subdirectory(another_lib)
add_subdirectory(native_lib)
and for each subdirectory, i have defined a build target. then in my build.gradle i have
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}
However, when I built the project, it only builts native_lib. Did i miss anything to add my own module to build?