CTest TEST_LAUNCHER target property
CMake target property
TEST_LAUNCHER
allows specifying a test launcher program.
For example, MPI programs can use mpiexec
to run tests with parameters.
This allows deduplicating or making more programmatic test runner scripts.
Typically we create a small CMake function to configure the test launcher for each target and the associated tests.