Skip to content

Instantly share code, notes, and snippets.

@LiewJunTung
Created January 28, 2018 15:07
Show Gist options
  • Save LiewJunTung/1f6eccce10cd6b04f7440f7df71b811f to your computer and use it in GitHub Desktop.
Save LiewJunTung/1f6eccce10cd6b04f7440f7df71b811f to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.4.1)
file(GLOB calculator_sources
../../djinni/support-lib/jni/*.cpp
../../generated/jni/*.cpp
../../src/cpp/*.cpp
)
add_library( # Sets the name of the library.
calculator
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
${calculator_sources} )
include_directories(
../../djinni/support-lib/
../../djinni/support-lib/jni/
../../generated/cpp/
../../generated/jni/
../../src/cpp/
)
target_link_libraries(calculator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment