#Creating distribution package:
include(InstallRequiredSystemLibraries)
include(CPack)
…
After “cpack -G TXZ”, I only find “myapp” in the bin subfolder of the generated package. Neither system .so files nor the 3rd party .so file are included in the package. What else should I do to make cpack include those .so files?
There is also file(GET_RUNTIME_DEPENDENCIES) available in 3.15 and newer. This does a more…exact calculation than BundleUtilities (but is restricted to the 3 main platforms of today). Once the list of dependent libraries is found, they can be installed and modified as necessary (I’d like to work on getting CMake to ship some common utilities for doing so, but don’t have a timeline).