File: CMakeLists.txt

package info (click to toggle)
python-gsd 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: python: 3,255; ansic: 1,965; cpp: 129; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 624 bytes parent folder | download
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})