aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-06-27 17:06:42 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-06-27 17:06:42 +0200
commita3ba47b454ebcedf7ea0124e4716f5fed3db531b (patch)
tree7ae0cbe1313d164b9ca0e06c7bacee3dcac788e9
parent739551a6d64c91e18587ddd5f62018b55dc20664 (diff)
Adding Android options to CMakeLists
Change-Id: I537d2396aafc210aecbc0495002b8b9aadd31f8e Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
-rw-r--r--CMakeLists.txt4
1 files 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}")