1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
# copy Python modules to the build directory to make it a working Python package
macro(copy_file file)
add_custom_command(
OUTPUT ${file}
DEPENDS ${file}
COMMAND ${CMAKE_COMMAND}
ARGS
-E copy ${CMAKE_CURRENT_SOURCE_DIR}/${file}
${CMAKE_CURRENT_BINARY_DIR}/${file}
COMMENT "Copy gsd/test/${file}"
)
endmacro(copy_file)
set(files
conftest.py
pytest.ini
test_fl.py
test_gsd_v1.gsd
test_hoomd.py
test_largefile.py
)
foreach(file ${files})
copy_file(${file})
endforeach()
add_custom_target(copy_gsd_test ALL DEPENDS ${files})
|