From eabba16993fcd65d9473a2d134e43fff747d097f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 9 Apr 2020 20:16:46 +0800 Subject: Simplify build instructions --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 504aa61..5eeb437 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ add_library(${PROJECT_NAME} SHARED client.cxx) if (ANDROID) + set(ANDROID_BUILD_ABI_${ANDROID_ABI} 1) + set(CMAKE_CXX_STANDARD_LIBRARIES ${ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libs/${ANDROID_ABI}/libc++_shared.so) include_directories(${CMAKE_SYSROOT}/usr/include) target_link_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SYSROOT}/usr/lib/${ANDROID_TOOLCHAIN_NAME}/${ANDROID_NATIVE_API_LEVEL}) -- cgit v1.2.3