Can you configure CMake to automatically install apt deb dependencies?

730 Views Asked by At

A debian package is built using CMake/CPack (CPACK_GENERATOR = "DEB")

The built package contains an executable and some shared objects.

One of the shared objects has a dependency on libjpeg.so.62, which should be installed in the system. Is it possible to configure CMake to install libjepeg automatically via apt, when my product is installed by running sudo apt install ./my.deb?

0

There are 0 best solutions below