summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-04-09 20:16:46 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-04-09 20:16:46 +0800
commiteabba16993fcd65d9473a2d134e43fff747d097f (patch)
treeae6a3e99640ae5277dc7486ae35901f24f6f0f4a /CMakeLists.txt
parent2e1eae4e9aa37ece0f23fc90a1ccb741b675bb92 (diff)
Simplify build instructions
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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})