VTK Module system with mulitple projects

Ok, I am having some progress with this but am having difficulty with how the python wrappings from project A are exported. My suspicion is that I need to make an equivalent of the vtkmodules-vtk-python-module-properties.cmake file but I cannot work out how to do so.

The current issue I have is as follows; projectA contains library X. Also I can compile project B library Y that has a dependency on A::X using the module structure and projectA-config.cmake. I can also successfully generate python bindings for both projects. However if I try to import from project B, for example:

python3 -c "import B.Y"

I get

ImportError: Failed to load Y: No module named .X

Any thoughts?

Thanks

Kit