• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1enable_testing
2--------------
3
4Enable testing for current directory and below.
5
6.. code-block:: cmake
7
8  enable_testing()
9
10Enables testing for this directory and below.
11
12This command should be in the source directory root
13because ctest expects to find a test file in the build
14directory root.
15
16This command is automatically invoked when the :module:`CTest`
17module is included, except if the ``BUILD_TESTING`` option is
18turned off.
19
20See also the :command:`add_test` command.
21