enable_testing.rst 474 B

1234567891011121314151617181920
  1. enable_testing
  2. --------------
  3. Enable testing for current directory and below.
  4. .. code-block:: cmake
  5. enable_testing()
  6. Enables testing for this directory and below.
  7. This command should be in the source directory root
  8. because ctest expects to find a test file in the build
  9. directory root.
  10. This command is automatically invoked when the :module:`CTest`
  11. module is included, except if the ``BUILD_TESTING`` option is
  12. turned off.
  13. See also the :command:`add_test` command.