CMakeLists.txt 806 字节
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
cc_test_old(infer_io_utils_tester SRCS io_utils_tester.cc DEPS infer_io_utils)
15 16 17 18 19 20 21

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

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

proto_library(shape_range_info_proto SRCS shape_range_info.proto)