Skip to content

Commit

Permalink
Made benchmarks an option
Browse files Browse the repository at this point in the history
  • Loading branch information
epoupon committed Feb 2, 2024
1 parent 19b0856 commit 2214d75
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pkg_check_modules(LIBAV IMPORTED_TARGET libavcodec libavutil libavformat)
pkg_check_modules(Archive REQUIRED IMPORTED_TARGET libarchive)
find_package(PAM)
find_package(STB)
find_package(benchmark)

# WT
if (NOT Wt_FOUND)
Expand Down Expand Up @@ -72,12 +71,10 @@ endif ()
message(STATUS "IMAGE_LIBRARY set to ${IMAGE_LIBRARY}")

# Benchmark
if (benchmark_FOUND)
set(BUILD_BENCHMARKS ON)
message(STATUS "Google Benchmark found. Building benchmarks")
else ()
set(BUILD_BENCHMARKS OFF)
message(STATUS "Google Benchmark not found. Not building benchmarks")
option(BUILD_BENCHMARKS "Build benchmarks" OFF)
if (BUILD_BENCHMARKS)
find_package(benchmark REQUIRED)
message(STATUS "Building benchmarks")
endif()

add_subdirectory(src)
Expand Down

0 comments on commit 2214d75

Please # to comment.