When I specify a shared library via target_link_libraries, it gets added to Linker options and is linked. But when the final APK is assembled, specified shared library does not get copied into it (into lib\armeabi-v7a directory), and therefore I get an error after launch, because loadLibrary cannot find it.
To mark a shared library file to be copied into APK, it should be specified in Ant Build -> Additional Dependendies -> Native Library Dependencies. As far as I can see, the current implementation of generator has no way of doing it. Could such an option to be added? It would probably be right just to add all .so files added with target_link_libraries to this property (and their directories into Native Library Directories). Or am I missing something? Is there any way to solve this in other way? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
