CMakeLists.txt 2.3 KB
Newer Older
1 2 3
set_source_files_properties(
  interceptor_ping_pong_test.cc PROPERTIES COMPILE_FLAGS
                                           ${DISTRIBUTE_COMPILE_FLAGS})
4 5
cc_test_old(interceptor_ping_pong_test SRCS interceptor_ping_pong_test.cc DEPS
            fleet_executor ${BRPC_DEPS})
6

7 8 9
set_source_files_properties(
  compute_interceptor_test.cc PROPERTIES COMPILE_FLAGS
                                         ${DISTRIBUTE_COMPILE_FLAGS})
10 11
cc_test_old(compute_interceptor_test SRCS compute_interceptor_test.cc DEPS
            fleet_executor ${BRPC_DEPS})
12

13 14 15
set_source_files_properties(
  source_interceptor_test.cc PROPERTIES COMPILE_FLAGS
                                        ${DISTRIBUTE_COMPILE_FLAGS})
16 17
cc_test_old(source_interceptor_test SRCS source_interceptor_test.cc DEPS
            fleet_executor ${BRPC_DEPS})
18

19 20
set_source_files_properties(
  sink_interceptor_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
21 22
cc_test_old(sink_interceptor_test SRCS sink_interceptor_test.cc DEPS
            fleet_executor ${BRPC_DEPS})
23

24 25 26
set_source_files_properties(
  interceptor_pipeline_short_path_test.cc
  PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
27 28 29
cc_test_old(
  interceptor_pipeline_short_path_test SRCS
  interceptor_pipeline_short_path_test.cc DEPS fleet_executor ${BRPC_DEPS})
30

31 32 33
set_source_files_properties(
  interceptor_pipeline_long_path_test.cc PROPERTIES COMPILE_FLAGS
                                                    ${DISTRIBUTE_COMPILE_FLAGS})
34 35 36
cc_test_old(
  interceptor_pipeline_long_path_test SRCS
  interceptor_pipeline_long_path_test.cc DEPS fleet_executor ${BRPC_DEPS})
37

38 39 40
set_source_files_properties(
  compute_interceptor_run_op_test.cc PROPERTIES COMPILE_FLAGS
                                                ${DISTRIBUTE_COMPILE_FLAGS})
41
cc_test_old(
42
  compute_interceptor_run_op_test
43 44 45 46 47 48 49 50 51 52
  SRCS
  compute_interceptor_run_op_test.cc
  DEPS
  fleet_executor
  ${BRPC_DEPS}
  op_registry
  fill_constant_op
  elementwise_add_op
  scope
  device_context)
53

张春乔 已提交
54
if(WITH_DISTRIBUTE AND NOT WITH_PSLIB)
55 56 57
  set_source_files_properties(
    interceptor_ping_pong_with_brpc_test.cc
    PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
58 59 60
  cc_test_old(
    interceptor_ping_pong_with_brpc_test SRCS
    interceptor_ping_pong_with_brpc_test.cc DEPS fleet_executor ${BRPC_DEPS})
61
endif()