Skip to content

Instantly share code, notes, and snippets.

@CedricGuillemet
Created July 16, 2024 12:31
Show Gist options
  • Save CedricGuillemet/13f55304422dfaebcfd6bfc1ebfa1b2a to your computer and use it in GitHub Desktop.
Save CedricGuillemet/13f55304422dfaebcfd6bfc1ebfa1b2a to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.18)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(BabylonNative)
include(FetchContent)
FetchContent_Declare(babylonnative
GIT_REPOSITORY https://github.com/BabylonJS/BabylonNative.git
GIT_TAG d0c97077d07da3a4f07d92473155db11c2e5a6c3)
FetchContent_MakeAvailable(babylonnative)
add_library(BabylonNativeJNI SHARED
src/main/cpp/BabylonNativeJNI.cpp)
target_link_libraries(BabylonNativeJNI
GLESv3
android
EGL
log
-lz
AndroidExtensions
AppRuntime
Canvas
Console
GraphicsDevice
NativeCamera
NativeEngine
NativeInput
NativeOptimizations
NativeXr
ScriptLoader
XMLHttpRequest
Window)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment