FindSelfPackers — CMake 4.1.4 Documentation

# FindSelfPackers

Finds UPX, the Ultimate Packer for eXecutables.

This module searches for executable packers-tools that compress executables or shared libraries into on-the-fly, self-extracting versions. It currently supports `UPX`.

## Cache Variables

The following cache variables may be set:

`SELF_PACKER_FOR_EXECUTABLE`

  Path to the executable packer for compressing executables.

`SELF_PACKER_FOR_SHARED_LIB`

  Path to the executable packer for compressing shared libraries.

`SELF_PACKER_FOR_EXECUTABLE_FLAGS`

  Command-line options to use when compressing executables.

`SELF_PACKER_FOR_SHARED_LIB_FLAGS`

  Command-line options to use when compressing shared libraries.

## Examples

Finding UPX:

    find_package(SelfPackers)