[CMake] Where are tests located?
EXT-York, Gantry
gantry.york at boeing.com
Thu Nov 10 15:11:11 EST 2011
add_test seems to work if you are adding an executable that is built, but if it is just a script that is imported, the cmake system is comfused as to where it is located and the script its doesn't know where the executable is.
Gantry York
Chandler, Arizona
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of EXT-York, Gantry
Sent: Thursday, November 10, 2011 1:01 PM
To: cmake at cmake.org
Subject: [CMake] Where are tests located?
When I do an
add_executable( run_main.pl IMPORTED)
add_test( test1 run_main.pl)
How does it know where run_main.pl is located when you do an out of source build?
It seems to look in
.
Releases
Debug
MinSizeRel
RelWithDebInfo
Deployment
Development
which are directories that I don't even see existing.
And if run_main.pl is just
#!/usr/bin/perl
system " ../exec/main"
How does it know if ../exec/main is in the src tree or the build tree? If main is a C binary, it would be in the build tree, if it is just a script it would be in the source tree.
Gantry York
Chandler, Arizona
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111110/f6c2361e/attachment.htm>
More information about the CMake
mailing list