CMakeLists.txt 20.6 KB
Newer Older
L
liuruilong 已提交
1 2
set(dir ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${dir}/build")
3
set(FOUND_MATCH OFF)
L
liuruilong 已提交
4

5 6 7 8
set(CON -1)

message(STATUS "nets :${NET}")

Y
Yanzhan Yang 已提交
9 10 11 12 13 14 15 16
list(FIND NET "net" CON)
if (CON GREATER -1)
    # gen test
    ADD_EXECUTABLE(test-net net/test_net.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-net paddle-mobile)
    set(FOUND_MATCH ON)
endif ()

17 18
list(FIND NET "googlenet" CON)
if (CON GREATER -1)
19
    # gen test
20
    ADD_EXECUTABLE(test-googlenet net/test_googlenet.cpp test_helper.h test_include.h executor_for_test.h)
21
    target_link_libraries(test-googlenet paddle-mobile)
22

23 24 25
    # gen test
    ADD_EXECUTABLE(test-googlenet-quali net/test_googlenet_quali.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-googlenet-quali paddle-mobile)
26 27 28 29 30 31
    set(FOUND_MATCH ON)

endif ()

list(FIND NET "mobilenet" CON)
if (CON GREATER -1)
32
    # gen test
33
    ADD_EXECUTABLE(test-mobilenet net/test_mobilenet.cpp test_helper.h test_include.h executor_for_test.h)
34
    target_link_libraries(test-mobilenet paddle-mobile)
35 36

    # gen test
37
    ADD_EXECUTABLE(test-mobilenet-combine net/test_mobilenet_combine.cpp test_helper.h test_include.h executor_for_test.h)
38
    target_link_libraries(test-mobilenet-combine paddle-mobile)
39 40
    set(FOUND_MATCH ON)

41 42 43 44
    # gen test
    ADD_EXECUTABLE(test-mobilenetgpu  net/test_mobilenet_GPU.cpp test_helper.h  test_include.h)
    target_link_libraries(test-mobilenetgpu paddle-mobile)

45
endif ()
46

47 48
list(FIND NET "yolo" CON)
if (CON GREATER -1)
49
    # gen test
50
    ADD_EXECUTABLE(test-yolo net/test_yolo.cpp test_helper.h test_include.h executor_for_test.h)
51
    target_link_libraries(test-yolo paddle-mobile)
xiebaiyuan's avatar
xiebaiyuan 已提交
52
    # gen test
53 54
    ADD_EXECUTABLE(test-yolo-combined net/test_yolo_combined.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-yolo-combined paddle-mobile)
55 56 57 58 59 60
    set(FOUND_MATCH ON)

endif ()

list(FIND NET "squeezenet" CON)
if (CON GREATER -1)
61
    # gen test
62
    ADD_EXECUTABLE(test-squeezenet net/test_squeezenet.cpp test_helper.h test_include.h executor_for_test.h)
63
    target_link_libraries(test-squeezenet paddle-mobile)
64 65 66 67 68 69
    set(FOUND_MATCH ON)

endif ()

list(FIND NET "resnet" CON)
if (CON GREATER -1)
70
    # gen test
71
    ADD_EXECUTABLE(test-resnet net/test_resnet.cpp test_helper.h test_include.h executor_for_test.h)
72
    target_link_libraries(test-resnet paddle-mobile)
73 74 75 76
    set(FOUND_MATCH ON)

endif ()

Z
zhangyang 已提交
77
list(FIND NET "FPGA_NET_V1" CON)
78
if (CON GREATER -1)
79 80
    #ADD_EXECUTABLE(test-resnet50 fpga/test_resnet50.cpp test_helper.h test_include.h executor_for_test.h)
    #target_link_libraries(test-resnet50 paddle-mobile)
qnqinan's avatar
qnqinan 已提交
81

82 83
    #ADD_EXECUTABLE(test-densebox fpga/test_densebox_combine.cpp test_helper.h test_include.h executor_for_test.h)
    #target_link_libraries(test-densebox paddle-mobile)
qnqinan's avatar
qnqinan 已提交
84

85 86
    #ADD_EXECUTABLE(test-rfcn fpga/test_rfcn.cpp test_helper.h test_include.h executor_for_test.h)
    #target_link_libraries(test-rfcn paddle-mobile)
Z
zhangyang0701 已提交
87

88 89
    #ADD_EXECUTABLE(test-marker fpga/test_marker.cpp test_helper.h test_include.h executor_for_test.h)
    #target_link_libraries(test-marker paddle-mobile)
J
jameswu2014 已提交
90

91 92
    ADD_EXECUTABLE(test-rfcn-api fpga/test_rfcn_api.cpp)
    target_link_libraries(test-rfcn-api paddle-mobile)
93 94 95 96 97 98 99 100 101

    ADD_EXECUTABLE(test-mobilenet-api fpga/test_mobilenet_api.cpp)
    target_link_libraries(test-mobilenet-api paddle-mobile)

    ADD_EXECUTABLE(test-yolo-api fpga/test_yolo_api.cpp)
    target_link_libraries(test-yolo-api paddle-mobile)

    ADD_EXECUTABLE(test-marker-api fpga/test_marker_api.cpp)
    target_link_libraries(test-marker-api paddle-mobile)
qnqinan's avatar
qnqinan 已提交
102
    
103 104 105 106 107 108 109 110
    #ADD_EXECUTABLE(test-marker2 fpga/test_marker2.cpp test_helper.h test_include.h executor_for_test.h )
    #target_link_libraries(test-marker2 paddle-mobile)

    #ADD_EXECUTABLE(test-mobilenet fpga/test_mobilenet_beijing.cpp test_helper.h test_include.h executor_for_test.h)
    #target_link_libraries(test-mobilenet paddle-mobile)

    #ADD_EXECUTABLE(test-yolo fpga/test_yolo_combine.cpp test_helper.h test_include.h executor_for_test.h)
    #target_link_libraries(test-yolo paddle-mobile)
J
jameswu2014 已提交
111

112
    set(FOUND_MATCH ON)
Z
zhangyang 已提交
113
endif ()
114

Z
zhangyang 已提交
115 116 117 118
list(FIND NET "FPGA_NET_V2" CON)
if (CON GREATER -1)
    ADD_EXECUTABLE(test-resnet50 fpga/test_resnet50.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-resnet50 paddle-mobile)
Z
zhangyang 已提交
119 120 121

    ADD_EXECUTABLE(test-pe fpga/test_pe.cpp)
    target_link_libraries(test-pe paddle-mobile)
qnqinan's avatar
qnqinan 已提交
122

qnqinan's avatar
qnqinan 已提交
123
    ADD_EXECUTABLE(test-densebox fpga/test_densebox_combine.cpp test_helper.h test_include.h executor_for_test.h)
qnqinan's avatar
qnqinan 已提交
124 125
    target_link_libraries(test-densebox paddle-mobile)

Z
zhangyang 已提交
126
    set(FOUND_MATCH ON)
127 128
endif ()

C
Chon 已提交
129 130 131 132 133 134 135 136
list(FIND NET "FPGA_OPS_KD" CON)
if (CON GREATER -1)
    ADD_EXECUTABLE(test-ssd fpga/test_ssd.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-ssd paddle-mobile)

    set(FOUND_MATCH ON)
endif ()

137 138
list(FIND NET "mobilenetssd" CON)
if (CON GREATER -1)
139
    # gen test
140
    ADD_EXECUTABLE(test-mobilenetssd net/test_mobilenet+ssd.cpp test_helper.h test_include.h executor_for_test.h)
141
    target_link_libraries(test-mobilenetssd paddle-mobile)
142

143 144 145 146 147 148
    set(FOUND_MATCH ON)

endif ()

list(FIND NET "nlp" CON)
if (CON GREATER -1)
149
    # gen test
150
    ADD_EXECUTABLE(test-nlp net/test_nlp.cpp test_helper.h test_include.h executor_for_test.h)
151 152 153
    target_link_libraries(test-nlp paddle-mobile)

    # gen test
154
    ADD_EXECUTABLE(test-gru-op operators/test_gru_op.cpp test_helper.h test_include.h)
155
    target_link_libraries(test-gru-op paddle-mobile)
156 157 158 159 160 161
    set(FOUND_MATCH ON)

endif ()

list(FIND NET "mobilenetfssd" CON)
if (CON GREATER -1)
xiebaiyuan's avatar
xiebaiyuan 已提交
162
    # gen test
163
    ADD_EXECUTABLE(test-fssd net/test_mobilenet_025_fssd.cpp test_helper.h test_include.h)
xiebaiyuan's avatar
xiebaiyuan 已提交
164
    target_link_libraries(test-fssd paddle-mobile)
xiebaiyuan's avatar
xiebaiyuan 已提交
165

166 167 168 169 170 171
    set(FOUND_MATCH ON)

endif ()

list(FIND NET "genet" CON)
if (CON GREATER -1)
xiebaiyuan's avatar
xiebaiyuan 已提交
172
    # gen test
173
    ADD_EXECUTABLE(test-genet net/test_genet_combine.cpp test_helper.h test_include.h executor_for_test.h)
xiebaiyuan's avatar
xiebaiyuan 已提交
174
    target_link_libraries(test-genet paddle-mobile)
175 176 177
    set(FOUND_MATCH ON)

endif ()
L
liuruilong 已提交
178

179 180 181 182 183 184 185 186 187
list(FIND NET "super" CON)
if (CON GREATER -1)
    # gen test
    ADD_EXECUTABLE(test-super net/test_super.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-super paddle-mobile)
    set(FOUND_MATCH ON)

endif ()

188 189 190 191 192 193
list(FIND NET "op" CON)
if (CON GREATER -1)
    # gen test
    ADD_EXECUTABLE(test-sigmoid operators/test_sigmoid_op.cpp test_include.h)
    target_link_libraries(test-sigmoid paddle-mobile)

194 195 196
    # gen test log
    ADD_EXECUTABLE(test-leakyrelu operators/test_leaky_relu_op.cpp)
    target_link_libraries(test-leakyrelu paddle-mobile)
197 198 199
    set(FOUND_MATCH ON)
endif ()

200
if (NOT FOUND_MATCH)
L
liuruilong 已提交
201
    # gen test
202
    ADD_EXECUTABLE(test-resnet net/test_resnet.cpp test_helper.h test_include.h executor_for_test.h)
L
liuruilong 已提交
203 204 205
    target_link_libraries(test-resnet paddle-mobile)

    # gen test
206
    ADD_EXECUTABLE(test-squeezenet net/test_squeezenet.cpp test_helper.h test_include.h executor_for_test.h)
L
liuruilong 已提交
207 208 209
    target_link_libraries(test-squeezenet paddle-mobile)

    # gen test
210
    ADD_EXECUTABLE(test-yolo net/test_yolo.cpp test_helper.h test_include.h executor_for_test.h)
L
liuruilong 已提交
211 212
    target_link_libraries(test-yolo paddle-mobile)

xiebaiyuan's avatar
xiebaiyuan 已提交
213
    # gen test
214
    ADD_EXECUTABLE(test_yolo_combined net/test_yolo_combined.cpp test_helper.h test_include.h executor_for_test.h)
xiebaiyuan's avatar
xiebaiyuan 已提交
215 216
    target_link_libraries(test_yolo_combined paddle-mobile)

Y
Yanzhan Yang 已提交
217 218 219 220
    # gen test
    ADD_EXECUTABLE(test-net net/test_net.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-net paddle-mobile)

221 222 223 224
    # gen test
    ADD_EXECUTABLE(test-op-in-net net/test_op_in_net.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-op-in-net paddle-mobile)

L
liuruilong 已提交
225
    # gen test
226
    ADD_EXECUTABLE(test-googlenet net/test_googlenet.cpp test_helper.h test_include.h executor_for_test.h)
L
liuruilong 已提交
227 228
    target_link_libraries(test-googlenet paddle-mobile)

229 230 231 232
    # gen test
    ADD_EXECUTABLE(test-googlenet-quali net/test_googlenet_quali.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-googlenet-quali paddle-mobile)

233
    # gen test
H
hjchen2 已提交
234
    ADD_EXECUTABLE(test-conv-op operators/test_conv_op.cpp test_helper.h test_include.h executor_for_test.h)
235 236 237
    target_link_libraries(test-conv-op paddle-mobile)

    # gen test
238
    ADD_EXECUTABLE(test-mul-op operators/test_mul_op.cpp test_helper.h test_include.h)
239 240 241
    target_link_libraries(test-mul-op paddle-mobile)

    # gen test
242
    ADD_EXECUTABLE(test-elementwiseadd-op operators/test_elementwise_add_op.cpp test_helper.h test_include.h)
243 244 245
    target_link_libraries(test-elementwiseadd-op paddle-mobile)

    # gen test
246 247 248 249 250 251 252 253
    ADD_EXECUTABLE(test-elementwisesub-op operators/test_elementwise_sub_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-elementwisesub-op paddle-mobile)

    # gen test
    ADD_EXECUTABLE(test-im2sequence-op operators/test_im2sequence_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-im2sequence-op paddle-mobile)

	# gen test
254
    ADD_EXECUTABLE(test-concat-op operators/test_concat_op.cpp test_helper.h test_include.h)
255 256 257
    target_link_libraries(test-concat-op paddle-mobile)

    # gen test
258
    ADD_EXECUTABLE(test-lrn-op operators/test_lrn_op.cpp test_helper.h test_include.h)
259 260 261
    target_link_libraries(test-lrn-op paddle-mobile)

    # gen test
262
    ADD_EXECUTABLE(test-batchnorm-op operators/test_batchnorm_op.cpp test_helper.h test_include.h)
263 264 265
    target_link_libraries(test-batchnorm-op paddle-mobile)

    # gen test
266
    ADD_EXECUTABLE(test-priorbox-op operators/test_prior_box_op.cpp test_helper.h test_include.h)
267 268 269
    target_link_libraries(test-priorbox-op paddle-mobile)

    # gen test
270
    ADD_EXECUTABLE(test-boxcoder-op operators/test_box_coder_op.cpp test_helper.h test_include.h)
271 272 273
    target_link_libraries(test-boxcoder-op paddle-mobile)

    # gen test
274
    ADD_EXECUTABLE(test-transpose-op operators/test_transpose_op.cpp test_helper.h test_include.h)
275 276
    target_link_libraries(test-transpose-op paddle-mobile)

L
lijiancheng0614 已提交
277 278 279 280
    # gen test
    ADD_EXECUTABLE(test-transpose2-op operators/test_transpose2_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-transpose2-op paddle-mobile)

281
    # gen test
282
    ADD_EXECUTABLE(test-multiclassnms-op operators/test_multiclass_nms_op.cpp test_helper.h test_include.h)
283 284
    target_link_libraries(test-multiclassnms-op paddle-mobile)

L
lijiancheng0614 已提交
285 286 287 288
    # gen test
    ADD_EXECUTABLE(test-polygon-box-transform-op operators/test_polygon_box_transform_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-polygon-box-transform-op paddle-mobile)

L
lijiancheng0614 已提交
289 290 291 292
    # gen test
    ADD_EXECUTABLE(test-fill-constant-op operators/test_fill_constant_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-fill-constant-op paddle-mobile)

293
    # gen test
294
    ADD_EXECUTABLE(test-reshape-op operators/test_reshape_op.cpp test_helper.h test_include.h)
295 296
    target_link_libraries(test-reshape-op paddle-mobile)

L
lijiancheng0614 已提交
297 298 299 300
    # gen test
    ADD_EXECUTABLE(test-reshape2-op operators/test_reshape2_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-reshape2-op paddle-mobile)

301
    # gen test
302
    ADD_EXECUTABLE(test-relu-op operators/test_relu_op.cpp test_helper.h test_include.h)
303 304
    target_link_libraries(test-relu-op paddle-mobile)

H
hjchen2 已提交
305 306 307
    ADD_EXECUTABLE(test-relu6-op operators/test_relu6_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-relu6-op paddle-mobile)

308 309 310 311 312 313
    ADD_EXECUTABLE(test-tanh-op operators/test_tanh_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-tanh-op paddle-mobile)

    ADD_EXECUTABLE(test-log-op operators/test_log_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-log-op paddle-mobile)

H
hjchen2 已提交
314 315 316 317 318 319
    ADD_EXECUTABLE(test-topk-op operators/test_topk_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-topk-op paddle-mobile)

    ADD_EXECUTABLE(test-cast-op operators/test_cast_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-cast-op paddle-mobile)

320 321 322
    ADD_EXECUTABLE(test-less-than-op operators/test_less_than_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-less-than-op paddle-mobile)

323
    # gen test
324
    ADD_EXECUTABLE(test-fc-op operators/test_fusion_fc_op.cpp test_helper.h test_include.h)
325 326
    target_link_libraries(test-fc-op paddle-mobile)

E
debug  
eclipsess 已提交
327 328 329 330
    # gen test
    ADD_EXECUTABLE(test-sum-op operators/test_sum_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-sum-op paddle-mobile)

H
hjchen2 已提交
331 332 333 334 335 336 337 338
    # test quantize op
    ADD_EXECUTABLE(test-quantize-op operators/test_quantize_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-quantize-op paddle-mobile)

    # test dequantize op
    ADD_EXECUTABLE(test-dequantize-op operators/test_dequantize_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-dequantize-op paddle-mobile)

339 340 341 342 343 344 345 346
    # gen test log
    ADD_EXECUTABLE(test-log common/test_log.cpp)
    target_link_libraries(test-log paddle-mobile)

    # gen test log
    ADD_EXECUTABLE(test-load framework/test_load.cpp)
    target_link_libraries(test-load paddle-mobile)

347 348 349 350
    # gen test log
    ADD_EXECUTABLE(test-loadmemory framework/test_load_memory.cpp)
    target_link_libraries(test-loadmemory paddle-mobile)

xiebaiyuan's avatar
xiebaiyuan 已提交
351 352 353 354
    # gen test log
    ADD_EXECUTABLE(test-loadmemory-inference framework/test_load_memory_inference_api.cpp)
    target_link_libraries(test-loadmemory-inference paddle-mobile)

N
nhzlx 已提交
355 356 357
    ADD_EXECUTABLE(test-inference-api framework/test_inference_api.cpp)
    target_link_libraries(test-inference-api paddle-mobile)

358 359 360 361 362
    # gen test
    ADD_EXECUTABLE(test-optimize framework/test_optimize.cpp)
    target_link_libraries(test-optimize paddle-mobile)

    #gen test
Z
ZhenWang 已提交
363 364
    ADD_EXECUTABLE(test-pool-op operators/test_pool_op.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-pool-op paddle-mobile)
365 366

    #gen test
H
hjchen2 已提交
367 368
    ADD_EXECUTABLE(test-softmax-op operators/test_softmax_op.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-softmax-op paddle-mobile)
369 370

    # gen test
371 372 373
    ADD_EXECUTABLE(test-gemm-accuracy common/test_gemm_accuracy.cpp)
    target_link_libraries(test-gemm-accuracy paddle-mobile)

Z
Zhen Wang 已提交
374 375 376 377
    # gen test
    ADD_EXECUTABLE(test-gemm-int8-accuracy common/test_gemm_int8_accuracy.cpp)
    target_link_libraries(test-gemm-int8-accuracy paddle-mobile)

378 379 380
    # gen test
    ADD_EXECUTABLE(test-gemm-perf common/test_gemm_perf.cpp)
    target_link_libraries(test-gemm-perf paddle-mobile)
W
wangliu 已提交
381

382 383 384
    # gen test
    ADD_EXECUTABLE(test-enforce common/test_enforce.cpp)
    target_link_libraries(test-enforce paddle-mobile)
L
liuruilong 已提交
385

D
dolphin8 已提交
386
    # gen test - test if openmp works
L
liuruilong 已提交
387
    ADD_EXECUTABLE(test-openmp common/test_openmp.cpp test_helper.h test_include.h executor_for_test.h)
D
dolphin8 已提交
388
    target_link_libraries(test-openmp paddle-mobile)
L
liuruilong 已提交
389

390
    # gen test
391
    ADD_EXECUTABLE(test-mobilenetssd net/test_mobilenet+ssd.cpp test_helper.h test_include.h executor_for_test.h)
392
    target_link_libraries(test-mobilenetssd paddle-mobile)
E
eclipsess 已提交
393

394 395
    # gen test
    ADD_EXECUTABLE(test-mobilenet-combine net/test_mobilenet_combine.cpp test_helper.h test_include.h executor_for_test.h)
396 397
    target_link_libraries(test-mobilenet-combine paddle-mobile)

398
    # gen test
399
    ADD_EXECUTABLE(test-genet net/test_genet_combine.cpp test_helper.h test_include.h executor_for_test.h)
400 401
    target_link_libraries(test-genet paddle-mobile)

402
    # gen test
403 404
    ADD_EXECUTABLE(test-sigmoid-op operators/test_sigmoid_op.cpp test_include.h)
    target_link_libraries(test-sigmoid-op paddle-mobile)
W
wangliu 已提交
405

406 407 408 409
    # gen test log
    ADD_EXECUTABLE(test-leakyrelu operators/test_leaky_relu_op.cpp)
    target_link_libraries(test-leakyrelu paddle-mobile)

410 411 412
    # gen test
    ADD_EXECUTABLE(test-depthwise-conv-op operators/test_depthwise_conv_op.cpp test_helper.h test_include.h executor_for_test.h)
    target_link_libraries(test-depthwise-conv-op paddle-mobile)
E
eclipsess 已提交
413

L
liuruilong 已提交
414
    # gen test
415
    ADD_EXECUTABLE(test-mobilenet net/test_mobilenet.cpp test_helper.h test_include.h executor_for_test.h)
L
liuruilong 已提交
416 417
    target_link_libraries(test-mobilenet paddle-mobile)

L
liuruilong 已提交
418
    # gen test
419
    ADD_EXECUTABLE(test-conv-add-relu-op operators/test_conv_add_relu_op.cpp test_helper.h test_include.h executor_for_test.h)
L
liuruilong 已提交
420 421
    target_link_libraries(test-conv-add-relu-op paddle-mobile)

422
    # gen test
423
    ADD_EXECUTABLE(test-conv-add-bn-relu-op operators/test_fusion_conv_add_bn_relu_op.cpp test_helper.h test_include.h executor_for_test.h)
424 425
    target_link_libraries(test-conv-add-bn-relu-op paddle-mobile)

xiebaiyuan's avatar
xiebaiyuan 已提交
426
    # gen test
427
    ADD_EXECUTABLE(test-nlp net/test_nlp.cpp test_helper.h test_include.h executor_for_test.h)
xiebaiyuan's avatar
xiebaiyuan 已提交
428 429 430
    target_link_libraries(test-nlp paddle-mobile)

    # gen test
431
    ADD_EXECUTABLE(test-gru-op operators/test_gru_op.cpp test_helper.h test_include.h)
xiebaiyuan's avatar
xiebaiyuan 已提交
432 433
    target_link_libraries(test-gru-op paddle-mobile)

Y
yangfei 已提交
434
    # gen test
Y
yangfei 已提交
435

436
    ADD_EXECUTABLE(test-inceptionv4 net/test_inceptionv4.cpp test_helper.h test_include.h executor_for_test.h)
Y
yangfei 已提交
437 438 439
    target_link_libraries(test-inceptionv4 paddle-mobile)

    # gen test
440
    ADD_EXECUTABLE(test-alexnet net/test_alexnet.cpp test_helper.h test_include.h executor_for_test.h)
Y
yangfei 已提交
441 442
    target_link_libraries(test-alexnet paddle-mobile)

443
    ADD_EXECUTABLE(test-googlenetv1 net/test_googlenetv1_combine.cpp test_helper.h test_include.h)
444 445 446
    target_link_libraries(test-googlenetv1 paddle-mobile)

    # gen test
447
    ADD_EXECUTABLE(test-fssd net/test_mobilenet_025_fssd.cpp test_helper.h test_include.h)
448 449
    target_link_libraries(test-fssd paddle-mobile)

Y
yangfei 已提交
450 451 452 453
    # gen test
    ADD_EXECUTABLE(test-mobilenetgpu  net/test_mobilenet_GPU.cpp test_helper.h  test_include.h)
    target_link_libraries(test-mobilenetgpu paddle-mobile)

Y
yangfei 已提交
454 455 456
    # gen test
    ADD_EXECUTABLE(test-yologpu net/test_yologpu.cpp test_helper.h  test_include.h executor_for_test.h)
    target_link_libraries(test-yologpu paddle-mobile)
Y
yangfei 已提交
457

458 459 460 461
    # gen test
    ADD_EXECUTABLE(test-multi-process net/test_multi_inference_predict.cpp test_helper.h test_include.h)
    target_link_libraries(test-multi-process paddle-mobile)

462 463 464
    # gen test benchmark
    ADD_EXECUTABLE(test-benchmark net/test_benchmark.cpp)
    target_link_libraries(test-benchmark paddle-mobile)
465

466 467 468 469
    # gen test
    ADD_EXECUTABLE(test-eng net/test_eng.cpp test_helper.h test_include.h)
    target_link_libraries(test-eng paddle-mobile)

470 471 472
    # gen test
    ADD_EXECUTABLE(test-super net/test_super.cpp test_helper.h test_include.h)
    target_link_libraries(test-super paddle-mobile)
473 474 475 476
   
    # gen test
    ADD_EXECUTABLE(test-ocr net/test_ocr.cpp test_helper.h test_include.h)
    target_link_libraries(test-ocr paddle-mobile)
H
hjchen2 已提交
477

478 479 480 481
    ADD_EXECUTABLE(test-gesture net/test_gesture.cpp test_helper.h test_include.h)
    target_link_libraries(test-gesture paddle-mobile)
  

482 483
    ADD_EXECUTABLE(test-sequence-expand-op operators/test_sequence_expand_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-sequence-expand-op paddle-mobile)
H
hjchen2 已提交
484

485 486
    ADD_EXECUTABLE(test-sequence-pool-op operators/test_sequence_pool_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-sequence-pool-op paddle-mobile)
H
hjchen2 已提交
487

488 489
    ADD_EXECUTABLE(test-sequence-softmax-op operators/test_sequence_softmax_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-sequence-softmax-op paddle-mobile)
H
hjchen2 已提交
490 491 492 493 494

    # gen test
    ADD_EXECUTABLE(test-vgg16ssd net/test_vgg16ssd.cpp test_helper.h test_include.h)
    target_link_libraries(test-vgg16ssd paddle-mobile)

495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
    # gen test
    ADD_EXECUTABLE(test-logical-and-op operators/test_logical_and_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-logical-and-op paddle-mobile)

    # gen test
    ADD_EXECUTABLE(test-logical-or-op operators/test_logical_or_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-logical-or-op paddle-mobile)

    # gen test
    ADD_EXECUTABLE(test-logical-not-op operators/test_logical_not_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-logical-not-op paddle-mobile)

    # gen test
    ADD_EXECUTABLE(test-logical-xor-op operators/test_logical_xor_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-logical-xor-op paddle-mobile)

Z
zhaojiaying01 已提交
511 512 513 514 515 516 517 518
    # gen test
    ADD_EXECUTABLE(test-increment-op operators/test_increment_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-increment-op paddle-mobile)

    # gen test
    ADD_EXECUTABLE(test-is-empty-op operators/test_is_empty_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-is-empty-op paddle-mobile)

519 520 521 522 523
    ADD_EXECUTABLE(test-conv-bn-relu-op operators/test_conv_bn_relu_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-conv-bn-relu-op paddle-mobile)

    ADD_EXECUTABLE(test-dwconv-bn-relu-op operators/test_dwconv_bn_relu_op.cpp test_helper.h test_include.h)
    target_link_libraries(test-dwconv-bn-relu-op paddle-mobile)
524 525 526

    ADD_EXECUTABLE(test-conv-gpu operators/test_conv_gpu.cpp test_helper.h test_include.h)
    target_link_libraries(test-conv-gpu paddle-mobile)
J
Jiaying Zhao 已提交
527 528 529

    ADD_EXECUTABLE(test-net-benchmark net/test_net_benchmark.cpp test_helper.h test_include.h)
    target_link_libraries(test-net-benchmark paddle-mobile)
530
endif ()