Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Aug 25, 2023
1 parent d3e52c5 commit 0178637
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/eoftest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hunter_add_package(nlohmann_json)
find_package(nlohmann_json CONFIG REQUIRED)

add_executable(evmone-eoftest)
target_link_libraries(evmone-eoftest PRIVATE evmone nlohmann_json::nlohmann_json GTest::gtest)
target_link_libraries(evmone-eoftest PRIVATE evmone evmone::testutils nlohmann_json::nlohmann_json GTest::gtest)
target_include_directories(evmone-eoftest PRIVATE ${evmone_private_include_dir})
target_sources(
evmone-eoftest PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion test/eoftest/eoftest_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ void run_eof_test(std::istream& input)
}
}

} // namespace evmone::test
} // namespace evmone::test
2 changes: 1 addition & 1 deletion test/statetest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ find_package(nlohmann_json CONFIG REQUIRED)
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_link_libraries(evmone-statetestutils PRIVATE evmone::state evmone::testutils nlohmann_json::nlohmann_json)
target_include_directories(evmone-statetestutils PRIVATE ${evmone_private_include_dir})
target_sources(
evmone-statetestutils PRIVATE
Expand Down
5 changes: 3 additions & 2 deletions test/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

find_package(intx CONFIG REQUIRED)

add_library(testutils INTERFACE)
add_library(testutils STATIC)
add_library(evmone::testutils ALIAS testutils)
target_link_libraries(testutils INTERFACE evmc::evmc_cpp)
target_link_libraries(testutils PUBLIC evmc::evmc_cpp)
target_include_directories(testutils INTERFACE ${PROJECT_SOURCE_DIR} ${evmone_private_include_dir})

if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.19)
target_sources(
testutils PRIVATE
bytecode.hpp
stdx/utility.hpp
utils.cpp
utils.hpp
)
endif()
2 changes: 1 addition & 1 deletion test/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ evmc_revision to_rev(std::string_view s)
throw std::invalid_argument{"unknown revision: " + std::string{s}};
}

} // namespace evmone::test
} // namespace evmone::test

0 comments on commit 0178637

Please sign in to comment.