UseSWIG: Add swig_add_library macro
swig_add_module
does not allow to set the type for the library and instead always create the library as MODULE
.
This patch adds the new swig_add_library command with this signature:
swig_add_library(<name>
<LANGUAGE> language>
<SOURCES <file>...>
[TYPE <SHARED|MODULE|STATIC>])
The swig_add_module
is deprecated in favour of swig_add_library
.
Closes: #16415 (closed)