Skip to content

Instantly share code, notes, and snippets.

@aoriani
Forked from patm1987/CMakeLists.txt
Created March 5, 2019 09:07
Show Gist options
  • Save aoriani/e3633195274215cb13f607f7a97e2d91 to your computer and use it in GitHub Desktop.
Save aoriani/e3633195274215cb13f607f7a97e2d91 to your computer and use it in GitHub Desktop.
Fixing typo
cmake_minimum_required(VERSION 3.6.0)
add_library(native_app_glue STATIC
${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c)
target_include_directories(native_app_glue PUBLIC
${ANDROID_NDK}/sources/android/native_app_glue)
find_library(log-lib
log)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
add_library(helloworld-c SHARED
src/main/cpp/helloworld-c.cpp)
target_link_libraries(helloworld-c
android
native_app_glue
${log-lib})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment