mindspore support gmock

This commit is contained in:
ling 2021-06-30 15:59:40 +08:00
parent abc77e13e9
commit 710b7152b3
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)