ChaosBenches: Add Md4HasherCreateComputeDeleteBench

This commit is contained in:
hashlag
2026-01-25 17:24:58 +03:00
parent cbefae2256
commit 660b13a045
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
include(FetchContent)
cmake_policy(SET CMP0135 NEW)
FetchContent_Declare(
googlebenchmark
URL https://github.com/google/benchmark/archive/refs/tags/v1.9.5.tar.gz
URL_HASH SHA256=9631341c82bac4a288bef951f8b26b41f69021794184ece969f8473977eaa340
)
set(BENCHMARK_ENABLE_WERROR OFF CACHE BOOL "" FORCE)
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googlebenchmark)
set(ChaosBenches_SOURCE Hash/Md4HasherBenches.cpp)
add_executable(ChaosBenches ${ChaosBenches_SOURCE})
target_link_libraries(ChaosBenches benchmark::benchmark)
target_include_directories(ChaosBenches PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/Chaos>
)