Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions test/testrunner/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.23)
project(TestRunner)

## use multithreaded boost libraries, with -mt suffix
set(Boost_USE_MULTITHREADED ON)
Expand All @@ -10,9 +12,9 @@ set(BOOST_COMPONENTS "filesystem;unit_test_framework;program_options;system")

find_package(Boost CONFIG REQUIRED)


include_directories(AFTER SYSTEM .)
add_subdirectory(evmc)

set_property(TARGET evmc PROPERTY CXX_STANDARD 20)
add_executable(
testrunner
common.h
Expand All @@ -30,6 +32,14 @@ add_executable(
picosha2.h
testrunner.cpp
)
set_property(TARGET testrunner PROPERTY CXX_STANDARD 20)


include(FetchContent)

FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz)
FetchContent_MakeAvailable(json)

target_link_libraries(testrunner evmc Boost::headers nlohmann_json::nlohmann_json)