[CMake] Best way to copy Python test file to binary directory?
James Amundson
amundson at fnal.gov
Tue Oct 29 16:50:17 EDT 2013
Hi,
I have a mixed C++/Python project. The test suite includes executing
python files through a wrapper script. For example,
add_test(test_parallel_utils_py ${SYNERGIA2_BINARY_DIR}/synergia-local
-c "import nose; nose.main()"
test_parallel_utils.py)
One detail is important: the python file must exist in the binary
directory. For reasons beyond my control, simply specifying the source
directory as the location for test_parallel_utils.py won't work. For
in-source builds, of course there is no problem -- the python file is
already there.
What is the best way to get the python file into the binary directory
for out-of-source builds?
Thanks for any advice,
Jim Amundson
More information about the CMake
mailing list