CMakeLists.txt 227 字节
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)