2022-12-02 08:20:57 +00:00
|
|
|
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
2023-01-20 10:41:00 +00:00
|
|
|
index e1160bb..2a5462e 100644
|
2022-12-02 08:20:57 +00:00
|
|
|
--- a/test/CMakeLists.txt
|
|
|
|
+++ b/test/CMakeLists.txt
|
2023-01-20 10:41:00 +00:00
|
|
|
@@ -30,26 +30,6 @@ cmake_dependent_option( ROCWMMA_BUILD_VALIDATION_TESTS "Build validation tests"
|
|
|
|
cmake_dependent_option( ROCWMMA_BUILD_BENCHMARK_TESTS "Build benchmarking tests" OFF "ROCWMMA_BUILD_TESTS" OFF )
|
2022-12-02 08:20:57 +00:00
|
|
|
cmake_dependent_option( ROCWMMA_BUILD_EXTENDED_TESTS "Build extended test parameter coverage" OFF "ROCWMMA_BUILD_TESTS" OFF )
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
-# Test/benchmark requires additional dependencies
|
2022-12-02 08:20:57 +00:00
|
|
|
-include( FetchContent )
|
|
|
|
-
|
|
|
|
-FetchContent_Declare(
|
|
|
|
- googletest
|
2023-01-20 10:41:00 +00:00
|
|
|
- GIT_REPOSITORY https://github.com/google/googletest.git
|
|
|
|
- GIT_TAG 609281088cfefc76f9d0ce82e1ff6c30cc3591e5
|
2022-12-02 08:20:57 +00:00
|
|
|
-)
|
2023-01-20 10:41:00 +00:00
|
|
|
-FetchContent_GetProperties(googletest)
|
|
|
|
-if(NOT googletest_POPULATED)
|
|
|
|
- # Fetch the content using default details
|
|
|
|
- FetchContent_Populate(googletest)
|
|
|
|
- # Save the shared libs setting, then force to static libs
|
|
|
|
- set(BUILD_SHARED_LIBS_OLD ${BUILD_SHARED_LIBS})
|
|
|
|
- set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "Build SHARED libraries" FORCE)
|
|
|
|
- # Add gtest targets as static libs
|
|
|
|
- add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
|
|
|
|
- # Restore shared libs setting
|
|
|
|
- set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_OLD} CACHE INTERNAL "Build SHARED libraries" FORCE)
|
|
|
|
-endif()
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
set(ROCWMMA_TEST_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(ROCWMMA_COMMON_TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/hip_device.cpp
|