!22951 cmake ut googletest

Merge pull request !22951 from mindspore_ding/cmake_master_0906
This commit is contained in:
i-robot 2021-09-09 03:29:50 +00:00 committed by Gitee
commit ecbf018e1c
1 changed files with 4 additions and 1 deletions

View File

@ -95,6 +95,9 @@ if(ENABLE_MINDDATA)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/jpeg_turbo.cmake)
endif()
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/gtest.cmake)
if(ENABLE_TESTCASES OR ENABLE_CPP_ST)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/gtest.cmake)
endif()
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/onnx.cmake)
set(CMAKE_CXX_FLAGS ${_ms_tmp_CMAKE_CXX_FLAGS_F})