Skip to content

Commit

Permalink
Add assigner executable
Browse files Browse the repository at this point in the history
  • Loading branch information
akokoshn committed Apr 1, 2024
1 parent 77c8c13 commit 94df9cf
Show file tree
Hide file tree
Showing 10 changed files with 530 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "assigner"]
path = libs/assigner
url = https://github.com/NilFoundation/evm1-assigner
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.27)

project(zkEVM-framework)

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
Expand All @@ -7,6 +8,7 @@ option(BUILD_DOCS "Build documentation" FALSE)
option(ENABLE_TESTS "Enable tests" FALSE)

add_subdirectory(libs)
add_subdirectory(bin)

if(BUILD_DOCS)
find_package(Doxygen REQUIRED)
Expand Down
4 changes: 4 additions & 0 deletions bin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if(NOT Boost_FOUND)
find_package(Boost COMPONENTS REQUIRED filesystem log log_setup program_options thread system)
endif()
add_subdirectory(assigner)
20 changes: 20 additions & 0 deletions bin/assigner/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# SSZ++ requires C++23
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED True)

set(TARGET_NAME assigner)
set(SOURCES
src/main.cpp)

add_executable(${TARGET_NAME} ${SOURCES})

set(ASSIGNER_INCLUDES /var/empty/local/include)
set(ASSIGNER_LIBS /var/empty/local/lib)
target_include_directories(${TARGET_NAME}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../libs/data_types/include>
$<$<BOOL:${Boost_FOUND}>:${Boost_INCLUDE_DIRS}>
${ASSIGNER_INCLUDES})

target_link_directories(${TARGET_NAME} PRIVATE ${ASSIGNER_LIBS})
target_link_libraries(${TARGET_NAME} PRIVATE evmone zkEVMDataTypes ${Boost_LIBRARIES})
Loading

0 comments on commit 94df9cf

Please sign in to comment.