CMakeLists.txt 533 字节
Newer Older
1 2
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3

Y
YUNSHEN XIE 已提交
4

5
foreach(src ${TEST_OPS})
6
  py_test(${src} SRCS ${src}.py)
7
endforeach()
8

9
add_subdirectory(unittests)
10
add_subdirectory(book)
11

12 13
# TODO: support New Custom OP on Mac
if(Linux)
14 15
  add_subdirectory(custom_op)
endif()
16 17 18 19 20 21

# Windows CPU machine doesn't have CUDA, can't compile .cu file
# if(WIN32 AND WITH_GPU)
#   add_subdirectory(custom_op)
# endif()

Y
YUNSHEN XIE 已提交
22
set_tests_properties(test_beam_search_decoder PROPERTIES TIMEOUT 120)