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
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to