[CMake] Test input files handling
Matthew Woehlke
matthew.woehlke at kitware.com
Tue Jul 2 13:01:40 EDT 2013
On 2013-07-01 23:41, Gennadiy Rozental wrote:
> What is the best practice to handle test input files with cmake? Let's say
> these files resides in test source subdirectory input. Right now I copy them
> into bin directory and execute test from there (by specifying
> WORKING_DIRECTORY in add_test), but these files does not really belong
> there. What I would prefer is to keep them where they are and just run hte
> test somehow letting it know where they are.
Just pass the full path to the input file when invoking the test? (Or if
the input file names are hard-coded, change the test to accept an
argument giving their location?)
--
Matthew
More information about the CMake
mailing list