# FindOpenSP

Added in version 3.25.

Try to find the OpenSP library.

## Result Variables

This will define the following variables:

`OpenSP_FOUND`

  True if (the requested version of) `OpenSP` is available

`OpenSP_VERSION`

  The version of `OpenSP`

`OpenSP_VERSION_MAJOR`

  The major version of `OpenSP`

`OpenSP_VERSION_MINOR`

  The minor version of `OpenSP`

`OpenSP_VERSION_PATCH`

  The patch version of `OpenSP`

`OpenSP_INCLUDE_DIRS`

  The include dirs of `OpenSP` with its headers

`OpenSP_LIBRARIES`

  The OpenSP library for use with target_link_libraries(). This can be passed to target_link_libraries() instead of the `IMPORTED` `OpenSP::OpenSP` target

`OpenSP_MULTI_BYTE`

  True if `SP_MULTI_BYTE` was found to be defined in OpenSP's `config.h` header file, which indicates that the `OpenSP` library was compiled with support for multi-byte characters. The consuming target needs to define the `SP_MULTI_BYTE` to match this value in order to avoid issues with character decoding.

## IMPORTED Targets

This module defines the `IMPORTED` target `OpenSP::OpenSP`, if OpenSP has been found.

## Cache variables

The following cache variables may also be set:

`OpenSP_INCLUDE_DIR`

  the OpenSP include directory

`OpenSP_LIBRARY`

  the absolute path of the osp library