google/benchmark

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

Fermée

#1 856 ouverte le 18 sept. 2024

 (1 commentaire) (0 réaction) (0 personne assignée)C++ (1 539 forks)batch import
docshelp wanted

Métriques du dépôt

Stars
 (7 968 étoiles)
Métriques de merge PR
 (Merge moyen 4j 2h) (19 PRs mergées en 30 j)

Description

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.

Guide contributeur