google/benchmark
CMake: Difference between benchmark::benchmark and benchmark::benchmark_main
クローズ
#1,856 opened on 2024/09/18
docshelp wanted
Repository metrics
- Stars
- (7,968 個のスター)
- PR merge metrics
- (平均マージ 4d 2h) (30d で 19 merged PRs)
説明
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.