Packaging bug
make package produces a deb file only for ProjB not ProjA (when run from top dir).
More difficult than expected. CPack does not seem to handle well the fact of building several (sub-)projects.
Yes, It seems that CPack does not support creating several packages in one cmake project.
But we can workaround it with manually call cpack on different project config files like cpack --config /path/to/config/file.
I just forked your project and modify CPackConfig.cmake in each subproject to write in it's own cpack config. I also created special targets packageProjA and packageProjB with custom cpack calls.
So after creating custom target packages, which depends on those ones we can create two packages with one command make packages.
Tell me your opinion about that approach, it works, but I don't think it is good enough to do pull request.