# FindPerlLibs

Finds Perl libraries. Perl is a general-purpose, interpreted, dynamic programming language. This module detects whether Perl is installed and determines the locations of include paths, libraries, and the library name.

## Result Variables

This module sets the following variables:

`PerlLibs_FOUND`

  True if `perl.h` and `libperl` were found. For backward compatibility, the `PERLLIBS_FOUND` variable is also set to the same value.

`PERL_SITESEARCH`

  Path to the sitesearch install directory (`-V:installsitesearch`).

`PERL_SITEARCH`

  Path to the sitelib install directory (`-V:installsitearch`).

`PERL_SITELIB`

  Path to the sitelib install directory (`-V:installsitelib`).

`PERL_VENDORARCH`

  Path to the vendor arch install directory (`-V:installvendorarch`).

`PERL_VENDORLIB`

  Path to the vendor lib install directory (`-V:installvendorlib`).

`PERL_ARCHLIB`

  Path to the core arch lib install directory (`-V:archlib`).

`PERL_PRIVLIB`

  Path to the core priv lib install directory (`-V:privlib`).

`PERL_UPDATE_ARCHLIB`

  Path to the update arch lib install directory (`-V:installarchlib`).

`PERL_UPDATE_PRIVLIB`

  Path to the update priv lib install directory (`-V:installprivlib`).

`PERL_EXTRA_C_FLAGS`

  Compilation flags used to build Perl.

## Cache Variables

The following cache variables may also be set:

`PERL_INCLUDE_PATH`

  Directory containing `perl.h` and other Perl header files.

`PERL_LIBRARY`

  Path to the `libperl`.

`PERL_EXECUTABLE`

  Full path to the `perl` executable.

## Examples

Finding Perl libraries and specifying the minimum required version:

    find_package(PerlLibs 6.0)