!18654 mindspore support gmock

Merge pull request !18654 from ling/bug
This commit is contained in:
i-robot 2021-07-01 07:19:12 +00:00 committed by Gitee
commit 2d01b58c1b
1 changed files with 2 additions and 1 deletions

View File

@ -39,12 +39,13 @@ endif()
mindspore_add_pkg(gtest
VER 1.8.1
LIBS gtest
LIBS gtest gmock
URL ${REQ_URL}
MD5 ${MD5}
CMAKE_OPTION ${CMAKE_OPTION})
include_directories(${gtest_INC})
add_library(mindspore::gtest ALIAS gtest::gtest)
add_library(mindspore::gmock ALIAS gtest::gmock)
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
file(COPY ${gtest_DIRPATH}/bin/libgtest${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)