# if(NOT WITH_GFLAGS) # paddle_test(flags_native_test SRCS flags_native_test.cc) # endif() add_subdirectory(string) paddle_test(array_ref_test SRCS array_ref_test.cc) paddle_test(small_vector_test SRCS small_vector_test.cc) paddle_test(variant_test SRCS variant_test.cc) paddle_test(span_test SRCS span_test.cc) paddle_test(exception_test SRCS exception_test.cc) if(WITH_ONNXRUNTIME AND WIN32) # Copy onnxruntime for some c++ test in Windows, since the test will # be build only in CI, so suppose the generator in Windows is Ninja. copy_onnx(array_ref_test) copy_onnx(small_vector_test) copy_onnx(variant_test) copy_onnx(span_test) endif()