You could also look at the OpenCV project. They already support building for Android and are completely CMake based.
-----Original Message----- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Gregory Peele ARA/CFD Sent: Friday, March 16, 2012 2:03 PM To: cmake@cmake.org Subject: Re: [CMake] Android In-Depth CMake Questions > -----Original Message----- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Rolf Eike Beer > Sent: Friday, March 16, 2012 2:39 PM > To: cmake@cmake.org > Subject: Re: [CMake] Android In-Depth CMake Questions > > Gregory Peele ARA/CFD wrote: > > Hi all, > > > > I'm experimenting with adding more in-depth support for Android to > > my CMake-based projects since I have a large body of CMake-built C++ > code > > I want to use on Android (but not make Android-specific). I used > > the Google Android toolchain file as a starting point for NDK > > support, > and > > wrote a platform definition for Android so that the toolchain file > > only has to locate the right cross compiler. I also wrote functions > to > > define Android APK targets using the Android SDK and Ant (for now) > > to compile the Java pieces and the final APK, where my functions > > deal with generating temporary Android projects for each APK target, > > generating an Android manifest from a template file based on CMake > > variables, and staging native CMake .so targets and non-system > external libraries into the right spot to be put > > into the APK. The APK install step also has an option to install to > the > > Android emulator or attached devices using ADB. > > > > First off, is there any general interest in this kind of work? > > Would other people find this sort of thing useful in CMake itself? > > Absolutely. I know that some people in KDE are trying to get their > stuff ported to Android as well. Since KDE is basically entirely > CMake- based everything that CMake could do out of the box will likely > be of great value to them. > > Eike Very cool, I didn't know that. That could also dovetail nicely with some of my long-term interests which involve porting my terrain visualization GUI applications (based on Qt and OpenSceneGraph, though not KDE). Gregory Peele, Jr. Senior Scientist Applied Research Associates, Inc. Central Florida Division -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake