[CMake] SWIG dependencies

Anton Deguet anton at cs.jhu.edu
Thu Mar 31 14:05:45 EST 2005


Hello,

I am using SWIG with CMake and I am having some trouble with
dependencies.  The dependency on the SWIG interface file (aka .i or
.swig) works well but I can't find a clean way to manage dependencies on
what is used by the interface file, i.e. using %include or %import (and
cascading #include).

Swig can generate a list of dependencies usable by a Unix Makefile using
the option -MM (or -M -MF myFile.d) but I guess this is not portable and
I don't really know how to include these dependencies in CMake. 
Actually, is there a CMake function/macro to load Unix dependencies and
transform them in CMake dependencies ...

Has anyone found/proposed a nice way to handle this with CMake?

Anton


-- 
Anton Deguet                          Systems Engineer
NSF ERC CISST                    Johns Hopkins University
http://cisst.org                              410 516 5261



More information about the CMake mailing list