cmake: rework add_python_test()
* Add FILE_NAME option * add optional COMPONENT_NAME option note: needed if test.py is not in a ortools/<component>/python/ dir
This commit is contained in:
@@ -36,6 +36,6 @@ add_library(${PROJECT_NAMESPACE}::sorted_interval_list_pybind11 ALIAS sorted_int
|
||||
if(BUILD_TESTING)
|
||||
file(GLOB PYTHON_SRCS "*_test.py")
|
||||
foreach(FILE_NAME IN LISTS PYTHON_SRCS)
|
||||
add_python_test(${FILE_NAME})
|
||||
add_python_test(FILE_NAME ${FILE_NAME})
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user