google/benchmark

CMake: Difference between benchmark::benchmark and benchmark::benchmark_main

Open

#1,856 建立於 2024年9月18日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C++ (7,968 star) (1,539 fork)batch import
docshelp wanted

描述

Hi, I saw that on https://github.com/google/benchmark?tab=readme-ov-file#usage-with-cmake the Readme indicates that I should link against both benchmark::benchmark and benchmark::benchmark_main when using CMake. What's the difference between the two? Wouldn't it be enough to just link against benchmark::benchmark_main?

Thanks.

貢獻者指南