add_test()
add_test
Add a test to the project to be run by ctest(1)
.
add_test(NAME <name> COMMAND <command> [<arg>...] [CONFIGURATIONS <config>...] [WORKING_DIRECTORY <dir>])
Add a test called <name>
. The test name may not contain spaces, quotes, or other characters special in CMake syntax. The options are:
-
COMMAND
- Specify the test command-line. If
<command>
specifies an executable target (created byadd_executable()
) it will automatically b