From e43a5d42c1bec57ae874762e179a0d0b645c7e72 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 17 Mar 2016 15:07:57 +0200 Subject: Use globbing to add .py test files --- py/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'py/CMakeLists.txt') diff --git a/py/CMakeLists.txt b/py/CMakeLists.txt index 1a0738a..f701ef6 100644 --- a/py/CMakeLists.txt +++ b/py/CMakeLists.txt @@ -21,7 +21,8 @@ swig_link_libraries(pykms kms++ kmstest ${LIBDRM_LIBRARIES} ${PYTHON_LIBRARIES}) # We get some "maybe-uninitialized" warnings from the generated code. I hope they are harmless. set_source_files_properties(${swig_generated_file_fullname} PROPERTIES COMPILE_FLAGS "-Wno-maybe-uninitialized") -add_custom_target(pyextras SOURCES test.py functest.py db.py iact.py) +file(GLOB PY_SRCS "*.py") +add_custom_target(pyextras SOURCES ${PY_SRCS}) add_test(NAME pytest COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/functest.py") set_property(TEST pytest PROPERTY -- cgit v1.2.3