rapids_cpm_gbench

Added in version v22.12.00.

Allow projects to find or build Google Benchmark via CPM with built-in tracking of these dependencies for correct export support.

Uses the version of Google benchmark specified in the version file for consistency across all RAPIDS projects.

rapids_cpm_gbench( [BUILD_EXPORT_SET <export-name>]
                   [INSTALL_EXPORT_SET <export-name>]
                   [BUILD_STATIC]
                   [<CPM_ARGS> ...])
BUILD_EXPORT_SET

Record that a CPMFindPackage() for benchmark is required in our build directory export set.

INSTALL_EXPORT_SET

Record that a find_dependency() for benchmark is required in our install directory export set.

Note

Installation of benchmark will occur if an INSTALL_EXPORT_SET is provided, and benchmark is added to the project via add_subdirectory by CPM.

CPM_ARGS

Any arguments after CPM_ARGS will be forwarded to the underlying benchmark CPMFindPackage`() call

Added in version v23.12.00.

BUILD_STATIC

Will build Google Benchmark statically. No local searching for a previously built version will occur.

Result Targets

benchmark::benchmark targets will be created