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

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

28
cc_library(table_printer SRCS table_printer.cc)
29 30 31 32
cc_test(
  test_table_printer
  SRCS table_printer_tester.cc
  DEPS table_printer)
33 34

proto_library(shape_range_info_proto SRCS shape_range_info.proto)