cmake: rework add_python_sample()

This commit is contained in:
Corentin Le Molgat
2024-01-16 15:14:34 +01:00
parent 269f6c91f8
commit 21fd586d32
8 changed files with 44 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ endif()
if(BUILD_PYTHON_SAMPLES)
file(GLOB PYTHON_SRCS "*.py")
foreach(SAMPLE IN LISTS PYTHON_SRCS)
add_python_sample(${SAMPLE})
add_python_sample(FILE_NAME ${SAMPLE})
endforeach()
endif()