Added google benchmark support + small test

This commit is contained in:
emeric
2024-01-07 15:49:30 +01:00
parent 5882e61886
commit 19b0856dac
6 changed files with 211 additions and 138 deletions
+10
View File
@@ -24,6 +24,7 @@ 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)
@@ -70,6 +71,15 @@ elseif (IMAGE_LIBRARY STREQUAL STB AND NOT STB_FOUND)
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")
endif()
add_subdirectory(src)
install(DIRECTORY approot DESTINATION share/lms)