command for install dependency lib

If my project have the dependency lib and my system doesnt install it, how to process it with cmake when double click .deb file?

It sounds like you are using CPack’s DEB generator? If so, you want CPACK_DEBIAN_PACKAGE_DEPENDS. If you’re aiming to ship such dependencies yourself, you want file(GET_RUNTIME_DEPENDENCIES) and/or CMake 3.21’s install(RUNTIME_DEPENDENCY_SET).

Cc: @kyle.edwards

In fact , I know my project ( *.deb) need xxx.lib and I just do “apt install xxx”. It can success install *.deb with double click.
But some linux system maybe not the xxx.lib, some linux system have the xxx.lib.
How to check the system have the xxx.lib that I need. If not find it ,just install it.

Here is the sample probelm.