Re: [CMake] adding automatic handling of dependencies for swig-generated modules

2013-01-31 Thread Sébastien Barthélémy
Ok, I got no answer, so I'll try to be more specific, and cross post to -dev, please answer where suitable: 1) is there a known recipe to deal dependency detection? 2) I found the IMPLICIT_DEPENDS option of add_custom_command which suggests such support is possible, but implemented directly in cm

[CMake] adding automatic handling of dependencies for swig-generated modules

2013-01-28 Thread Sébastien Barthélémy
Hello all, swig supports the -MM option which lists a module dependencies (C/C++ headers and other ".i" interface files). I'd like to use it in order to let cmake know about these dependencies without user intervention. In addition to reducing the user burden, that would also help managing depende