Skip to content

Commit

Permalink
Merge pull request #516 from miles170/statetest-loader-library
Browse files Browse the repository at this point in the history
cmake: Add evmone::statetestutils library
  • Loading branch information
chfast authored Oct 21, 2022
2 parents 4351c41 + 5bdccd3 commit 13a7873
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/state/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

add_library(evmone-state STATIC)
add_library(evmone::state ALIAS evmone-state)
target_link_libraries(evmone-state PRIVATE evmc::evmc_cpp ethash::keccak)
target_link_libraries(evmone-state PUBLIC evmc::evmc_cpp PRIVATE ethash::keccak)
target_sources(
evmone-state PRIVATE
account.hpp
Expand Down
13 changes: 9 additions & 4 deletions test/statetest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
hunter_add_package(nlohmann_json)
find_package(nlohmann_json CONFIG REQUIRED)

add_executable(evmone-statetest)
target_link_libraries(evmone-statetest PRIVATE evmone evmone::state nlohmann_json::nlohmann_json GTest::gtest)
add_library(evmone-statetestutils STATIC)
add_library(evmone::statetestutils ALIAS evmone-statetestutils)
target_compile_features(evmone-statetestutils PUBLIC cxx_std_20)
target_link_libraries(evmone-statetestutils PRIVATE evmone::state nlohmann_json::nlohmann_json)
target_sources(
evmone-statetest PRIVATE
evmone-statetestutils PRIVATE
statetest.hpp
statetest.cpp
statetest_loader.cpp
)

add_executable(evmone-statetest)
target_link_libraries(evmone-statetest PRIVATE evmone::statetestutils evmone GTest::gtest)
target_sources(evmone-statetest PRIVATE statetest.cpp)

0 comments on commit 13a7873

Please sign in to comment.