[CMake] execute process when a specific test is launched
Arnaud GELAS
arnaud_gelas at hms.harvard.edu
Tue Mar 1 16:52:14 EST 2011
Hi all,
I would need to make sure one executable is running before running one
test added by CTest.
I would like to do something like that:
execute_process( COMMAND ${my_executable} )
add_test( MyOwnTest foo )
except that my_executable would be triggered, just before MyOwnTest starts.
Is it possible to do something like that with CMake?
or to do something like
add_test( MyOwnTest
COMMAND ${my_executable}
COMMAND foo )
?
Arnaud
More information about the CMake
mailing list