There were a couple of issues preventing the compilation of cantor on Windows, I've replaced the cantor_export.h flat file by calls to generate_export_header and put differentiated CANTOR_EXPORT precompiler directives depending on the module.
Also replaced #include <repository.h> by #include <KF5/KSyntaxHighlighting/Repository> for clarity's sake.