Skip to content

Commit

Permalink
use rapids_cpm_* for gbench and gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
cwharris committed Aug 30, 2024
1 parent 2a38c1f commit 480e24c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ rapids_find_package(ZLIB

if(MORPHEUS_BUILD_BENCHMARKS)
# google benchmark
# - Expects package to pre-exist in the build environment
# ================
rapids_find_package(benchmark REQUIRED
GLOBAL_TARGETS benchmark::benchmark
include(${rapids-cmake-dir}/cpm/gbench.cmake)
rapids_cpm_gbench(
BUILD_EXPORT_SET ${PROJECT_NAME}-core-exports
INSTALL_EXPORT_SET ${PROJECT_NAME}-core-exports
FIND_ARGS CONFIG
)
endif()

Expand All @@ -57,13 +55,11 @@ morpheus_utils_configure_glog()

if(MORPHEUS_BUILD_TESTS)
# google test
# - Expects package to pre-exist in the build environment
# ===========
rapids_find_package(GTest REQUIRED
GLOBAL_TARGETS GTest::gtest GTest::gmock GTest::gtest_main GTest::gmock_main
include(${rapids-cmake-dir}/cpm/gtest.cmake)
rapids_cpm_gtest(
BUILD_EXPORT_SET ${PROJECT_NAME}-core-exports
INSTALL_EXPORT_SET ${PROJECT_NAME}-core-exports
FIND_ARGS CONFIG
)
endif()

Expand Down

0 comments on commit 480e24c

Please sign in to comment.