forked from mindspore-Ecosystem/mindspore
mindspore support gmock
This commit is contained in:
parent
abc77e13e9
commit
710b7152b3
|
@ -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…
Reference in New Issue