Say you have a collection of source files:
s1.c
s2.c
s3.c
s4.c
s5.c
s6.c
prebuilt shared libraries:
sh1.so
sh2.so
sh3.so
and prebuilt static libraries:
st1.a
st2.a
st3.a
The task is to create a cmakelist file which does the following:
Builds a shared library called app.so which is loaded using System.LoadLibrary when the application is run
Builds a shared library called app_sh1.so which is automatically placed in src/main/jniLibs after being built
Builds a shared library called app_sh2.so which is automatically placed in src/main/jniLibs after being built
app.so is composed of s1.c, s2.c sh1.so and st1.a
app_sh1.so is composed of s3.c, s4.c, sh2.so and st2.a
app_sh2.so is composed of s5.c, s6.c, sh3.so and st3.a
How do I accomplish this?