CMakeLists.txt 639 字节
Newer Older
L
Liu Yiqun 已提交
1 2
set(PYTHON_TESTS_DIR ${PADDLE_SOURCE_DIR}/python/paddle/v2/fluid/tests)
add_executable(test_inference_recognize_digits test_inference_recognize_digits.cc)
3
target_circle_link_libraries(
L
Liu Yiqun 已提交
4
    test_inference_recognize_digits
5 6 7 8 9 10 11
    ARCHIVE_START
    paddle_fluid
    ARCHIVE_END
    gtest
    gflags)
add_test(
    NAME test_inference_recognize_digits_mlp
L
Liu Yiqun 已提交
12 13
    COMMAND test_inference_recognize_digits
            --dirname=${PYTHON_TESTS_DIR}/book/recognize_digits_mlp.inference.model
14
    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
L
Liu Yiqun 已提交
15 16
set_tests_properties(test_inference_recognize_digits_mlp
    PROPERTIES DEPENDS test_recognize_digits_mlp_cpu)