mirror of https://github.com/libp2p/cpp-libp2p.git
Yura Zarudniy
5 years ago
committed by
GitHub
18 changed files with 114 additions and 28 deletions
@ -1,9 +0,0 @@ |
|||
[submodule "deps/di"] |
|||
path = deps/di |
|||
url = https://github.com/boost-experimental/di |
|||
[submodule "deps/hat-trie"] |
|||
path = deps/hat-trie |
|||
url = https://github.com/Tessil/hat-trie.git |
|||
[submodule "deps/spdlog"] |
|||
path = deps/spdlog |
|||
url = https://github.com/gabime/spdlog |
@ -1,10 +1,16 @@ |
|||
hunter_config( |
|||
Boost |
|||
VERSION 1.70.0-p0 |
|||
) |
|||
) |
|||
|
|||
hunter_config(GSL |
|||
URL https://github.com/microsoft/GSL/archive/v2.0.0.tar.gz |
|||
SHA1 9bbdea551b38d7d09ab7aa2e89b91a66dd032b4a |
|||
CMAKE_ARGS GSL_TEST=OFF |
|||
) |
|||
|
|||
hunter_config( |
|||
spdlog |
|||
URL https://github.com/gabime/spdlog/archive/v1.x.zip |
|||
SHA1 086e9f8e3708024d5765fa5f94695819b223be23 |
|||
) |
|||
|
@ -0,0 +1,40 @@ |
|||
# |
|||
# Copyright Soramitsu Co., Ltd. All Rights Reserved. |
|||
# SPDX-License-Identifier: Apache-2.0 |
|||
# |
|||
|
|||
####################################### |
|||
# load and set up boost di dependency # |
|||
####################################### |
|||
|
|||
include(FeatureSummary) |
|||
include(ExternalProject) |
|||
|
|||
add_library(di INTERFACE IMPORTED) |
|||
|
|||
set(GIT_URL https://github.com/boost-experimental/di.git) |
|||
set(BOOTS_DI_VERSION cpp14) |
|||
set(GIT_TAG "cpp14") |
|||
|
|||
set_package_properties(boost_di |
|||
PROPERTIES |
|||
URL ${GIT_URL} |
|||
DESCRIPTION "boost experimental dependency injection library" |
|||
) |
|||
|
|||
externalproject_add(boost_di |
|||
GIT_REPOSITORY ${GIT_URL} |
|||
GIT_TAG ${GIT_TAG} |
|||
GIT_SHALLOW 1 |
|||
TLS_VERIFY true |
|||
INSTALL_COMMAND "" # remove install step |
|||
) |
|||
|
|||
add_dependencies(di boost_di) |
|||
|
|||
externalproject_get_property(boost_di source_dir) |
|||
set(boost_di_INCLUDE_DIR ${source_dir}/include ${source_dir}/extension/include) |
|||
file(MAKE_DIRECTORY ${boost_di_INCLUDE_DIR}) |
|||
|
|||
target_include_directories(di INTERFACE ${boost_di_INCLUDE_DIR}) |
|||
|
@ -0,0 +1,39 @@ |
|||
# |
|||
# Copyright Soramitsu Co., Ltd. All Rights Reserved. |
|||
# SPDX-License-Identifier: Apache-2.0 |
|||
# |
|||
|
|||
####################################### |
|||
# load and set up hat-trie dependency # |
|||
####################################### |
|||
|
|||
include(FeatureSummary) |
|||
include(ExternalProject) |
|||
|
|||
add_library(hat_trie INTERFACE IMPORTED) |
|||
|
|||
set(GIT_URL https://github.com/Tessil/hat-trie.git) |
|||
set(HAT_TRIE_VERSION master) |
|||
set(GIT_TAG "v0.6.0") |
|||
|
|||
set_package_properties(hat-trie-imp |
|||
PROPERTIES |
|||
URL ${GIT_URL} |
|||
DESCRIPTION "fast and memory efficient HAT-trie" |
|||
) |
|||
|
|||
externalproject_add(hat-trie-imp |
|||
GIT_REPOSITORY ${GIT_URL} |
|||
GIT_TAG ${GIT_TAG} |
|||
GIT_SHALLOW 1 |
|||
TLS_VERIFY true |
|||
INSTALL_COMMAND "" # remove install step |
|||
) |
|||
|
|||
add_dependencies(hat_trie hat-trie-imp) |
|||
|
|||
externalproject_get_property(hat-trie-imp source_dir) |
|||
set(hat-trie_INCLUDE_DIR ${source_dir}/include) |
|||
file(MAKE_DIRECTORY ${hat-trie_INCLUDE_DIR}) |
|||
|
|||
target_include_directories(hat_trie INTERFACE ${hat-trie_INCLUDE_DIR}) |
Loading…
Reference in new issue