Thanks. Embarrassed, but happy.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Rolf Eike Beer
Sent: Monday, July 09, 2012 11:52 PM
To: [email protected]
Subject: Re: [CMake] Running ctest tests from the test source directory

Ateljevich, Eli wrote:
> Hi all,
> I am doing an out-of-source build in a directory called /build. I have 
> a test directory /examples that has some input to be run with the 
> projects main driver:
> 
> /proj
>    /build
>       /bin
>          driver.exe
>       /example1
>       /example2
>    /example
>       /example1
>          ...some files
> 
> The project is a computationally expensive numerical model with large 
> data, so if at all possible I would like to avoid copying files. The 
> input names are hardwired, so the executable has to be run from a 
> directory where the data exist. Is there a best way to switch this so 
> that the program runs in the /example/example1 directory instead of 
> /build/example1?

cmake --help-command add_test

add_test(NAME <name> [CONFIGURATIONS [Debug|Release|...]]
           [WORKING_DIRECTORY dir]
           COMMAND <command> [arg1 [arg2 ...]])

Eike
-- 
--

Powered by www.kitware.com

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

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

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

Reply via email to