cannot use gtest_add_tests and gtest_disover_tests in lates cmake

When I use any of these two commands, the result is:

CMake Error at CMakeLists.txt:67 (gtest_add_tests): Unknown CMake command "gtest_add_tests".

Any suggestion for what I’m doing wrong?

It appears that you need include(GoogleTest) to gain access to those commands.