chore(ricepp): find pkgconfig in CMakeLists.txt

This commit is contained in:
Marcus Holland-Moritz 2024-02-05 21:50:55 +01:00
parent 81c451ace2
commit f95e59e10b

View File

@ -42,6 +42,7 @@ target_compile_features(ricepp PUBLIC cxx_std_20)
# target_link_libraries(ricepp_demo PRIVATE ricepp fmt)
if(WITH_BENCHMARKS)
find_package(PkgConfig REQUIRED)
pkg_check_modules(BENCHMARK IMPORTED_TARGET benchmark)
if(BENCHMARK_FOUND)
add_executable(ricepp_benchmark ricepp_benchmark.cpp)