-
-
Save zinoviev/cd03e76f1f146bb25c4a82fa8a70abb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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