On 10/20/2016 03:35 PM, Robert Dailey wrote:
> So using takanome's cmake toolchain, he had support for native app
> glue. Does CMake offer support for this now? I was able to generate
> but I'm not able to load in native app glue from the NDK.
We don't currently offer a first-class interface for it but the locations
are available relative to CMAKE_ANDROID_NDK:
```
include_directories("${CMAKE_ANDROID_NDK}/sources/android/native_app_glue")
set(my_sources ...
${CMAKE_ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c
)
```
Similarly for cpufeatures and ndk_helper.
That is why
https://github.com/taka-no-me/android-cmake/blob/master/AndroidNdkModules.cmake
simply wraps around hard-coded locations.
-Brad
--
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-developers