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

7
foreach(src ${TEST_OPS})
8
  py_test(${src} SRCS ${src}.py)
9
endforeach()
10

11
add_subdirectory(unittests)
12
add_subdirectory(book)
13
add_subdirectory(cpp_extension)
14
add_subdirectory(custom_op)
15
add_subdirectory(custom_kernel)
16
add_subdirectory(custom_runtime)