Made benchmarks an option
This commit is contained in:
+4
-7
@@ -24,7 +24,6 @@ pkg_check_modules(LIBAV IMPORTED_TARGET libavcodec libavutil libavformat)
|
|||||||
pkg_check_modules(Archive REQUIRED IMPORTED_TARGET libarchive)
|
pkg_check_modules(Archive REQUIRED IMPORTED_TARGET libarchive)
|
||||||
find_package(PAM)
|
find_package(PAM)
|
||||||
find_package(STB)
|
find_package(STB)
|
||||||
find_package(benchmark)
|
|
||||||
|
|
||||||
# WT
|
# WT
|
||||||
if (NOT Wt_FOUND)
|
if (NOT Wt_FOUND)
|
||||||
@@ -72,12 +71,10 @@ endif ()
|
|||||||
message(STATUS "IMAGE_LIBRARY set to ${IMAGE_LIBRARY}")
|
message(STATUS "IMAGE_LIBRARY set to ${IMAGE_LIBRARY}")
|
||||||
|
|
||||||
# Benchmark
|
# Benchmark
|
||||||
if (benchmark_FOUND)
|
option(BUILD_BENCHMARKS "Build benchmarks" OFF)
|
||||||
set(BUILD_BENCHMARKS ON)
|
if (BUILD_BENCHMARKS)
|
||||||
message(STATUS "Google Benchmark found. Building benchmarks")
|
find_package(benchmark REQUIRED)
|
||||||
else ()
|
message(STATUS "Building benchmarks")
|
||||||
set(BUILD_BENCHMARKS OFF)
|
|
||||||
message(STATUS "Google Benchmark not found. Not building benchmarks")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user