I have the following structure project structure

module1
module2

Module1 uses functions from module2 and the other way around. (they are
independent modules of a bigger application, which can be invoked also
separately).

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).

The problem is that I can't specify that CTestTestfile.cmake shouldn't
contain SUBDIRS command for the other directories (as I want to test each
module independently).

I could delete the SUBDIRS manually but I think this is not a 'clean'
solution.

Do you know any other way of preventing SUBDIRS to be added to
CTestTestfile.cmake ?

Regards,
Vlad
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to