Skip to content

Commit

Permalink
Fixed gbench setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kgorking committed Mar 1, 2024
1 parent 856af53 commit 35c2a6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
cmake_minimum_required (VERSION 3.15)

# Use google benchmark
include(FetchContent)

# Use google benchmark
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Suppressing benchmark's tests" FORCE)
FetchContent_Declare(gbench
GIT_REPOSITORY "https://github.com/google/benchmark.git"
GIT_TAG "v1.8.3"
SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/gbench"
)
FetchContent_MakeAvailable(gbench)

set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Suppressing benchmark's tests" FORCE)

add_executable (ecs_bench "main.cpp" "bench_component.cpp" "bench_baseline.cpp" "bench_ranged.cpp" "bench_sorting.cpp" "bench_hierarchy.cpp" "bench_particles.cpp" "shared_system.cpp")
target_link_libraries(ecs_bench ecs benchmark::benchmark)
Expand Down

0 comments on commit 35c2a6f

Please sign in to comment.