Extract module script CMake macros not considered
The extract module script does not consider cmake macros. So if you extract from a module that defines some cmake macros/functions and then use them, the extracted module will not find these functions because it shouldn't depend on its parent module anymore.
Maybe we can simply copy the cmake/modules folder (might need some renaming) of the module extracted from.
Edited by Timo Koch