Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FileLoader library to thirdparty project #32

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,7 @@
[submodule "zlib"]
path = zlib
url = https://github.com/madler/zlib.git
[submodule "FileLoader"]
path = FileLoader
url = ../FileLoader.git

1 change: 1 addition & 0 deletions FileLoader
Submodule FileLoader added at e0647d
19 changes: 19 additions & 0 deletions build/CommonTargets.CMake
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,25 @@ set(_FINDPACKAGE_MNN_LIBRARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/MNN/lib")
set(_FINDPACKAGE_MNN_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/MNN/include")
include_directories(${_FINDPACKAGE_MNN_INCLUDE_DIR})

# --------------------------------------------------------
# Build FileLoader
ExternalProject_Add(FileLoader
PREFIX FileLoader
SOURCE_DIR "${THIRDPARTY_DIR}/FileLoader"
CMAKE_CACHE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/FileLoader
-DBUILD_FILELOADER_DIR:PATH=${CMAKE_CURRENT_BINARY_DIR}/FileLoader
-DMNN_INCLUDE_DIR:PATH=${_FINDPACKAGE_MNN_INCLUDE_DIR}
-DMNN_LIBRARY_DIR:PATH=${_FINDPACKAGE_MNN_LIBRARY_DIR}
-DTESTING:BOOL=OFF
${_CMAKE_COMMON_BUILD_PARAMS}
DEPENDS MNN
)

set(_FINDPACKAGE_FILELOADER_CONFIG_DIR "${CMAKE_CURRENT_BINARY_DIR}/FileLoader/lib/cmake/mnn")
set(_FINDPACKAGE_FILELOADER_LIBRARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/FileLoader/lib")
set(_FINDPACKAGE_FILELOADER_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/FileLoader/include")

# --------------------------------------------------------
# builds ipfs-lite-cpp
ExternalProject_Add(ipfs-lite-cpp
Expand Down