TriBITSPub / TriBITS

TriBITS: Tribal Build, Integrate, and Test System,
http://tribits.org
Other
36 stars 46 forks source link

tribits_add[_advanced]_test(): Extract exec path from target name #581

Open bartlettroscoe opened 1 year ago

bartlettroscoe commented 1 year ago

While working on #63, I realized that tribits_add_test() and tribits_add_advanced_test() I realized that we can make these extract the exec path from the target name automatically, even with an MPI build, by using the $<TARGET_FILE:exeName> generator expression. To do this, we just need to do the following:

This would make it so that you don't need to specify the DIRECTORY argument to the location of the executable. And this would work for MPI as well.