diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 5bc821773e..f01147b0d9 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -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() @@ -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()