aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDon Turner <dturner@users.noreply.github.com>2020-10-30 09:35:20 +0000
committerGitHub <noreply@github.com>2020-10-30 09:35:20 +0000
commit83e283f9a498e03dd0ad67175a21afecfa46fcc3 (patch)
tree739e8de4a65df4ad8ac3ae796055dd2d1b213f1c /docs
parentf8dbe8dec05367b901e85380d4f2e3b0190cf95e (diff)
downloadoboe-83e283f9a498e03dd0ad67175a21afecfa46fcc3.tar.gz
Add a complete example for `CMakeLists.txt` when including pre-built binaries
Diffstat (limited to 'docs')
-rw-r--r--docs/GettingStarted.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md
index cfa27ce0..8044f853 100644
--- a/docs/GettingStarted.md
+++ b/docs/GettingStarted.md
@@ -31,6 +31,19 @@ Include and link to oboe by updating your `CMakeLists.txt`:
find_package (oboe REQUIRED CONFIG)
target_link_libraries(app oboe::oboe) # You may have other libraries here such as `log`.
+Here's a complete example `CMakeLists.txt` file:
+
+ cmake_minimum_required(VERSION 3.4.1)
+
+ # Build our own native library
+ add_library (native-lib SHARED native-lib.cpp )
+
+ # Find the Oboe package
+ find_package (oboe REQUIRED CONFIG)
+
+ # Specify the libraries which our native library is dependent on, including Oboe
+ target_link_libraries(app log oboe::oboe)
+
Configure your app to use the shared STL by updating your `app/build.gradle`:
android {