From 56578b4333fd85247f364c28546da8f02afa2289 Mon Sep 17 00:00:00 2001 From: "Galantsev, Dmitrii" Date: Tue, 20 Jun 2023 11:13:11 -0500 Subject: [PATCH] SWDEV-406542 - Add gtest to install targets Change-Id: I116505aaa33109fce66ab8daf9921e2de11a27d4 Signed-off-by: Galantsev, Dmitrii [ROCm/amdsmi commit: 82078565e954cb3d373bb6500b7e454a1d63bf1b] --- projects/amdsmi/tests/rocm_smi_test/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/amdsmi/tests/rocm_smi_test/CMakeLists.txt b/projects/amdsmi/tests/rocm_smi_test/CMakeLists.txt index dbff2046a2..9c8ed197dc 100755 --- a/projects/amdsmi/tests/rocm_smi_test/CMakeLists.txt +++ b/projects/amdsmi/tests/rocm_smi_test/CMakeLists.txt @@ -35,17 +35,17 @@ set(CMAKE_INSTALL_RPATH ${RSMITST_RPATH}) # Try to find googletest -find_package(GTest 1.11.0) +find_package(GTest 1.12.0) # GTest_FOUND is set to TRUE if ANY version is found -# GTest_VERSION is set if 1.11.0 or newer version is found +# GTest_VERSION is set if 1.12.0 or newer version is found if(NOT GTest_FOUND STREQUAL "TRUE" OR NOT DEFINED GTest_VERSION) # Google Test wasn't found. Download and compile ourselves include(FetchContent) FetchContent_Declare( googletest GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG release-1.11.0) + GIT_TAG release-1.12.0) FetchContent_MakeAvailable(googletest) endif() @@ -69,7 +69,7 @@ target_link_libraries( PUBLIC stdc++ PUBLIC pthread) -install(TARGETS ${RSMITST} +install(TARGETS ${RSMITST} gtest gtest_main DESTINATION ${SHARE_INSTALL_PREFIX}/rsmitst_tests COMPONENT ${TESTS_COMPONENT})