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

if(NOT WITH_DISTRIBUTE)
    list(REMOVE_ITEM TEST_OPS test_recv_op)
endif(NOT WITH_DISTRIBUTE)

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

add_subdirectory(book)
T
typhoonzero 已提交
13
add_subdirectory(book_distribute)
14
add_subdirectory(book_memory_optimization)