I'm using the Android NDK and Cmake to generate shared libraries of my project.
I'm porting an existing project from Ubuntu to Android, and right now I need to port some executables files. I compile successfully all the executable file sexecpt one which needs the Threads
library.
In CMakeList.txt, there is FIND_PACKAGE(Threads)
which finds the library while compiling for Ubuntu, but not for Android.
I followed this cmake and libpthread but with no success.
I think I should write the FindThread.cmake
file but I'm pretty new to CMake and don't really know how to do it, especially as I don't know where is located the thread library for Android.
Any help would be appreciated. Thank you