# 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_FOUND`

  Added in version 4.2.

  Boolean indicating whether packer tools were found.

## Cache Variables

The following cache variables may also 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)