🔨 fix benchmarks
This commit is contained in:
parent
d0ef591ce2
commit
cfb2f34ebb
5 changed files with 51 additions and 50 deletions
11
cmake/download_test_data.cmake
Normal file
11
cmake/download_test_data.cmake
Normal file
|
@ -0,0 +1,11 @@
|
|||
find_package(Git)
|
||||
|
||||
# target to download test data
|
||||
add_custom_target(download_test_data
|
||||
COMMAND test -d json_test_data || ${GIT_EXECUTABLE} clone https://github.com/nlohmann/json_test_data.git --quiet --depth 1
|
||||
COMMENT "Downloading test data from https://github.com/nlohmann/json_test_data"
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
# create a header with the path to the downloaded test data
|
||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/include/test_data.hpp "#define TEST_DATA_DIRECTORY \"${CMAKE_BINARY_DIR}/json_test_data\"")
|
Loading…
Add table
Add a link
Reference in a new issue