FindSelfPackers¶
Finds UPX, the Ultimate Packer for eXecutables:
find_package(SelfPackers [...])
This module searches for executable packers-tools that compress executables or
shared libraries into on-the-fly, self-extracting versions. It currently
supports UPX.
Result Variables¶
This module defines the following variables:
SelfPackers_FOUNDAdded in version 4.2.
Boolean indicating whether packer tools were found.
Cache Variables¶
The following cache variables may also be set:
SELF_PACKER_FOR_EXECUTABLEPath to the executable packer for compressing executables.
SELF_PACKER_FOR_SHARED_LIBPath to the executable packer for compressing shared libraries.
SELF_PACKER_FOR_EXECUTABLE_FLAGSCommand-line options to use when compressing executables.
SELF_PACKER_FOR_SHARED_LIB_FLAGSCommand-line options to use when compressing shared libraries.
Examples¶
Finding UPX:
find_package(SelfPackers)