enable_testing.rst 505 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 top-level source directory because
  8. :manual:`ctest(1)` expects to find a test file in the top-level
  9. build directory.
  10. This command is automatically invoked when the :module:`CTest`
  11. module is included, except if the :variable:`BUILD_TESTING`
  12. option is turned off.
  13. See also the :command:`add_test` command.