I have the following structure project structure<br><br>module1<br>module2<br><br>Module1 uses functions from module2 and the other way around. (they are independent modules of a bigger application, which can be invoked also separately).<br>
<br>I use add_subdirectory command and if-s in the CMake-s so that the correct targets are added (for example when building module1, module2 is build only as a library).<br><br>The problem is that I can&#39;t specify that CTestTestfile.cmake shouldn&#39;t contain SUBDIRS command for the other directories (as I want to test each module independently).<br>
<br>I could delete the SUBDIRS manually but I think this is not a &#39;clean&#39; solution.<br><br>Do you know any other way of preventing SUBDIRS to be added to  CTestTestfile.cmake ?<br><br>Regards,<br>Vlad<br>