ctest_run_script.rst 577 B

123456789101112131415
  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 no argument is provided then the current script is run using the current
  9. settings of the variables. If ``NEW_PROCESS`` is specified then each
  10. script will be run in a separate process.If ``RETURN_VALUE`` is specified
  11. the return value of the last script run will be put into ``var``.