Skip to content

Instantly share code, notes, and snippets.

@initishbhatt
Created April 12, 2018 06:16
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 initishbhatt/4808056a102bc70cef5ebb72a217bbc2 to your computer and use it in GitHub Desktop.
Save initishbhatt/4808056a102bc70cef5ebb72a217bbc2 to your computer and use it in GitHub Desktop.
cmake list
# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.
add_library( # Sets the name of the library.
native-lib
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
src/main/cpp/native-lib.cpp )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment