Skip to content
Snippets Groups Projects
Commit 18ff7cc3 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'enable_testing'


538e699e Help: for command enable_testing, explain relation to module CTest.

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !3070
parents 8145876a 538e699e
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,8 @@ file produced by target ``myexe``.
CMake will generate tests only if the :command:`enable_testing`
command has been invoked. The :module:`CTest` module invokes the
command automatically when the ``BUILD_TESTING`` option is ``ON``.
command automatically unless the ``BUILD_TESTING`` option is turned
``OFF``.
---------------------------------------------------------------------
......
......@@ -7,7 +7,14 @@ Enable testing for current directory and below.
enable_testing()
Enables testing for this directory and below. See also the
:command:`add_test` command. Note that ctest expects to find a test file
in the build directory root. Therefore, this command should be in the
source directory root.
Enables testing for this directory and below.
This command should be in the source directory root
because ctest expects to find a test file in the build
directory root.
This command is automatically invoked when the :module:`CTest`
module is included, except if the ``BUILD_TESTING`` option is
turned off.
See also the :command:`add_test` command.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment