Skip to content

Instantly share code, notes, and snippets.

@zinoviev
Created December 20, 2021 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zinoviev/cd03e76f1f146bb25c4a82fa8a70abb1 to your computer and use it in GitHub Desktop.
Save zinoviev/cd03e76f1f146bb25c4a82fa8a70abb1 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.10.2)
project("droidskia")
add_library( # Sets the name of the library.
droidskia
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
native-lib.cpp)
find_library( # Sets the name of the path variable.
log-lib
log)
add_library(skia SHARED IMPORTED)
set_target_properties( # Specifies the target library.
skia
# Specifies the parameter you want to define.
PROPERTIES IMPORTED_LOCATION
# Provides the path to the library you want to import.
/Users/zigi/Sources/DroidSkia/AndroidKit/src/main/libs/${ANDROID_ABI}/libandroidkit.so
)
target_link_libraries( # Specifies the target library.
droidskia
skia
# Links the target library to the log library
# included in the NDK.
${log-lib})
include_directories(/Users/zigi/Sources/skia)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment