From 32cfa691368a8c3c493b864c805ae028a4b9d847 Mon Sep 17 00:00:00 2001 From: Henrique A Klein Date: Thu, 15 Aug 2024 16:53:53 -0300 Subject: [PATCH] Feat: Adding building of crypto3 --- build/CommonCompilerOptions.CMake | 2 +- build/CommonTargets.CMake | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build/CommonCompilerOptions.CMake b/build/CommonCompilerOptions.CMake index 4c25e18..087c7f7 100644 --- a/build/CommonCompilerOptions.CMake +++ b/build/CommonCompilerOptions.CMake @@ -76,7 +76,7 @@ if(NOT EXISTS "${THIRDPARTY_DIR}/build") endif() # Boost settings -set(BOOST_INCLUDE_LIBRARIES date_time filesystem log program_options random regex system test) +set(BOOST_INCLUDE_LIBRARIES container date_time filesystem log program_options random regex system test) list(JOIN BOOST_INCLUDE_LIBRARIES "," BOOST_INCLUDE_LIBRARIES_COMMA_SEPARATED) separate_arguments(BOOST_B2_FLAGS NATIVE_COMMAND "${CMAKE_CXX_FLAGS}") diff --git a/build/CommonTargets.CMake b/build/CommonTargets.CMake index 21247b9..e09f5fa 100644 --- a/build/CommonTargets.CMake +++ b/build/CommonTargets.CMake @@ -695,3 +695,14 @@ install( DIRECTORY ${THIRDPARTY_DIR}/jsonrpc-lean DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/jsonrpc-lean ) + +# crypto3 +ExternalProject_Add(crypto3 + PREFIX crypto3 + SOURCE_DIR "${THIRDPARTY_DIR}/zkLLVM/libs/crypto3" + CMAKE_CACHE_ARGS + -DCMAKE_INSTALL_PREFIX:PATH= + ${_CMAKE_COMMON_CACHE_ARGS} + ${_BOOST_CACHE_ARGS} + DEPENDS Boost +)