ctest_run_script.rst 475 B

1234567891011121314
  1. ctest_run_script
  2. ----------------
  3. runs a :option:`ctest -S` script
  4. .. code-block:: cmake
  5. ctest_run_script([NEW_PROCESS] script_file_name script_file_name1
  6. script_file_name2 ... [RETURN_VALUE var])
  7. Runs a script or scripts much like if it was run from :option:`ctest -S`.
  8. If ``NEW_PROCESS`` is specified then each script will be run in a separate
  9. process. If ``RETURN_VALUE`` is specified the return value of the last script
  10. run will be put into ``var``.