CppProjectTemplate icon indicating copy to clipboard operation
CppProjectTemplate copied to clipboard

Packaging bug

Open Barthelemy opened this issue 9 years ago • 2 comments

make package produces a deb file only for ProjB not ProjA (when run from top dir).

Barthelemy avatar May 22 '16 11:05 Barthelemy

More difficult than expected. CPack does not seem to handle well the fact of building several (sub-)projects.

Barthelemy avatar May 22 '16 12:05 Barthelemy

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.

kswaldemar avatar Oct 13 '16 14:10 kswaldemar