CMakeLists.txt 372 字节
Newer Older
T
Tao Luo 已提交
1
set(PYTHON_TESTS_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "python tests directory")
2 3
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
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
add_subdirectory(book_memory_optimization)