CMakeLists.txt 342 字节
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_communicator)
endif(NOT WITH_DISTRIBUTE)

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

12
add_subdirectory(unittests)
13
add_subdirectory(book)