diff --git a/.gitmodules b/.gitmodules index fe72100d..5f2147c2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -150,3 +150,6 @@ [submodule "wallet-core"] path = wallet-core url = ../wallet-core.git +[submodule "MNN"] + path = MNN + url = https://github.com/FedML-AI/MNN.git diff --git a/MNN b/MNN new file mode 160000 index 00000000..531facc6 --- /dev/null +++ b/MNN @@ -0,0 +1 @@ +Subproject commit 531facc6ada73323463711443878de1ec60a63d5 diff --git a/build/CommonTargets.CMake b/build/CommonTargets.CMake index b6834818..385efcea 100644 --- a/build/CommonTargets.CMake +++ b/build/CommonTargets.CMake @@ -545,6 +545,16 @@ ExternalProject_Add(xxhash ${_CMAKE_COMMON_BUILD_PARAMS} ) +# -------------------------------------------------------- +# Builds MNN +ExternalProject_Add(MNN + PREFIX MNN + SOURCE_DIR "${THIRDPARTY_DIR}/MNN" + CMAKE_CACHE_ARGS + -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/MNN + ${_CMAKE_COMMON_BUILD_PARAMS} +) + #ExternalProject_Add(wallet-core # PREFIX wallet-core # SOURCE_DIR "${THIRDPARTY_DIR}/wallet-core"