cmake/swig compatibility
CMake > 3.8 changed the API for setting up swig library. Indeed,
swig_add_module(pynsx python pynsx.i)
should be replaced by
swig_add_library(pynsx TYPE MODULE LANGUAGE python SOURCES pynsx.i)
CMake > 3.8 changed the API for setting up swig library. Indeed,
swig_add_module(pynsx python pynsx.i)
should be replaced by
swig_add_library(pynsx TYPE MODULE LANGUAGE python SOURCES pynsx.i)