From a3ba47b454ebcedf7ea0124e4716f5fed3db531b Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 27 Jun 2017 17:06:42 +0200 Subject: Adding Android options to CMakeLists Change-Id: I537d2396aafc210aecbc0495002b8b9aadd31f8e Signed-off-by: Mauro Sardara --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74dd85dd..22573803 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,17 +97,17 @@ else () endif() if(ANDROID_API) + include_directories(${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/4.9/include) include_directories(${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include) + set(ANDROID_LIBRARIES "${ANDROID_NDK}/platforms/android-24/arch-arm/usr/lib/libz.a" "${ANDROID_NDK}/platforms/android-24/arch-arm/usr/lib/liblog.so" "$ENV{NDK}/sources/cxx-stl/gnu-libstdc++/4.9/libs/$ENV{ABI}/libgnustl_shared.so") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ANDROID_C_FLAGS} -Wall") else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") - if (NOT COMPILE_FOR_IOS) if (BUILD_APPS) set(SUBFOLDERS ${APPS}) endif (BUILD_APPS) endif() - endif (ANDROID_API) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS}") -- cgit 1.2.3-korg