CMakeLists.txt 833 字节
Newer Older
1 2 3 4
cc_library(
  benchmark
  SRCS benchmark.cc
  DEPS enforce)
5
cc_test_old(test_benchmark SRCS benchmark_tester.cc DEPS benchmark)
6 7 8 9
cc_library(
  infer_io_utils
  SRCS io_utils.cc
  DEPS paddle_inference_api lod_tensor shape_range_info_proto)
10 11 12 13
cc_library(
  model_utils
  SRCS model_utils.cc
  DEPS proto_desc enforce)
14 15
cc_test_old(infer_io_utils_tester SRCS io_utils_tester.cc DEPS infer_io_utils
            fleet_executor)
16 17 18 19 20 21 22

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(infer_io_utils_tester)
endif()

23
cc_library(table_printer SRCS table_printer.cc)
24
cc_test_old(test_table_printer SRCS table_printer_tester.cc DEPS table_printer)
25 26

proto_library(shape_range_info_proto SRCS shape_range_info.proto)