[CMake] cmake doesn't run all tests
hex
hex7c3 at gmail.com
Tue May 21 05:44:52 EDT 2019
> hello,
>
> I have two modules in my CMake project:
>
> /root//
> //├── foo//
> //│ ├── CMakeLists.txt//
> //│ ├── src//
> //│ │ └── foo.c//
> //│ └── tests//
> //│ ├── foo_unit_test.c//
> //│ └── CMakeLists.txt//
> //├── CMakeLists.txt//
> //└── moo//
> // ├── CMakeLists.txt//
> // ├── src//
> // │ └── moo.c//
> // └── tests//
> // ├── CMakeLists.txt//
> // └── moo_unit_test.c//
> /
> my root project has:
>
> /enable_testing()//
> //
> //add_subdirectory(adder)//
> //add_subdirectory(viterbi_encoder)/
>
>
> and each module has:
>
> /add_subdirectory(tests)/
>
>
> For the tests I am using add_test() and make all test.
>
> yet, this only runs the tests within the first add_subdirectory. Other
> modules are ignored.
>
> How can I run all tests at once?
>
> Thank you in advance.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190521/7cc1b26f/attachment.html>
More information about the CMake
mailing list