conan-extensions icon indicating copy to clipboard operation
conan-extensions copied to clipboard

Using CPack deployer

Open MartinDelille opened this issue 2 years ago • 1 comments

I'm developping a CMake Qt application using 11 conan dependencies and I would like to use CPack for deployement.

I read here that it should be a conan extension and I wondered how this would works ? Shall I write my own deployer ?

I currently call cpack from the build method.

I read here that @gmeeker has a quite similar setup so maybe you could share your thought.

MartinDelille avatar Aug 16 '23 14:08 MartinDelille

Hi @MartinDelille

Definitely it seems the right approach would be a deployer (though if it is very configurable, it might be better as a custom command, it depends). The approach would be:

  • If it is quite generic and could be useful to other Conan users, at least as a base for customizing their own, try to contribute a barebones one (the minimum common denominator to be useful to as many people as possible) to this extensions repo.
  • If it sounds very opinionated or specific to a use case, better just do it for your own projects, it might be a bit confusing to have it here, and create more questions and support

I don't think having it as built-in in Conan makes sense.

memsharded avatar Aug 17 '23 21:08 memsharded