Is your feature request related to a problem? Please describe.
I noticed that my CMake tests are not built unless I include CTest in my CMakeLists.txt. Only then are any tests found when I run ctest --output-on-failure in my build directory.
Describe the solution you'd like
Currently, I add include(CTest) before any calls to ct_add_dir() and this fixes the issue. Is it possible to automatically include CTest when the project grabs CMakeTest?
Describe alternatives you've considered
Manually include CTest in my project before calling ct_add_dir(). This is fine as well, but I could not find documentation saying to do so.
Is your feature request related to a problem? Please describe.
I noticed that my CMake tests are not built unless I include CTest in my CMakeLists.txt. Only then are any tests found when I run
ctest --output-on-failurein my build directory.Describe the solution you'd like
Currently, I add
include(CTest)before any calls toct_add_dir()and this fixes the issue. Is it possible to automatically include CTest when the project grabs CMakeTest?Describe alternatives you've considered
Manually include CTest in my project before calling
ct_add_dir(). This is fine as well, but I could not find documentation saying to do so.