<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<blockquote type="cite"
cite="mid:DBBPR08MB4315F64D5159D861B5083D7A83070@DBBPR08MB4315.eurprd08.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
hello, <br>
<p>I have two modules in my CMake project:</p>
<p><i>root</i><i><br>
</i><i>├── foo</i><i><br>
</i><i>│ ├── CMakeLists.txt</i><i><br>
</i><i>│ ├── src</i><i><br>
</i><i>│ │ └── foo.c</i><i><br>
</i><i>│ └── tests</i><i><br>
</i><i>│ ├── foo_unit_test.c</i><i><br>
</i><i>│ └── CMakeLists.txt</i><i><br>
</i><i>├── CMakeLists.txt</i><i><br>
</i><i>└── moo</i><i><br>
</i><i> ├── CMakeLists.txt</i><i><br>
</i><i> ├── src</i><i><br>
</i><i> │ └── moo.c</i><i><br>
</i><i> └── tests</i><i><br>
</i><i> ├── CMakeLists.txt</i><i><br>
</i><i> └── moo_unit_test.c</i><i><br>
</i><br>
my root project has:</p>
<p><i>enable_testing()</i><i><br>
</i><i><br>
</i><i>add_subdirectory(adder)</i><i><br>
</i><i>add_subdirectory(viterbi_encoder)</i></p>
<p><br>
</p>
<p>and each module has:</p>
<p><i>add_subdirectory(tests)</i></p>
<p><br>
</p>
<p>For the tests I am using add_test() and make all test.<br>
</p>
<p>yet, this only runs the tests within the first
add_subdirectory. Other modules are ignored. <br>
</p>
<p>How can I run all tests at once?</p>
<p>Thank you in advance. <br>
</p>
</blockquote>
</body>
</html>