Browse Source

mindspore support gmock

tags/v1.3.0
ling 4 years ago
parent
commit
710b7152b3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cmake/external_libs/gtest.cmake

+ 2
- 1
cmake/external_libs/gtest.cmake 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)


Loading…
Cancel
Save