1file(GLOB PY_SRCS "*.py") 2add_custom_target(pyextras SOURCES ${PY_SRCS}) 3 4add_test(NAME pytest COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/functest.py") 5set_property(TEST pytest PROPERTY 6 ENVIRONMENT "PYTHONPATH=." "LD_LIBRARY_PATH=." 7) 8