Skip to content

Include CTest automatically #108

@zachcran

Description

@zachcran

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions