UseSWIG: install all files produced by SWIG with a call to `install(TARGETS swigTarget)`
I've recently been caught out by the install
command when using SWIG
and UseSWIG
- here's my stackoverflow question. The crux of the problem was that the install
command only installed the binary file produced by swig (i.e. a .pyd
) and neglects to also install the associated wrapper file (for instance a .py
). I think the more desirable behaviour in this instance is for cmake to install all files associated with swig. At a guess, the install
command wouldn't be able to do this, so perhaps a SwigInstall
macro/function within UseSWIG
would be beneficial?
Edited by Brad King