FindJasper

Finds the JasPer Image Coding Toolkit for handling image data in a variety of formats, such as the JPEG-2000:

find_package(Jasper [<version>] [...])

Imported Targets

This module provides the following Imported Targets:

Jasper::Jasper

在 3.22 版被加入.

Target encapsulating the JasPer library usage requirements, available only if the library is found.

結果變數

該模組定義了以下變數:

Jasper_FOUND

在 3.3 版被加入.

Boolean indicating whether (the requested version of) JasPer was found.

Jasper_VERSION

在 4.2 版被加入.

The version of JasPer found.

JASPER_INCLUDE_DIRS

在 3.22 版被加入.

The include directories needed to use the JasPer library.

JASPER_LIBRARIES

The libraries needed to use JasPer.

快取變數

The following cache variables may also be set:

JASPER_INCLUDE_DIR

The directory containing the jasper/jasper.h and other headers needed to use the JasPer library.

JASPER_LIBRARY_RELEASE

The path to the release (optimized) variant of the JasPer library.

JASPER_LIBRARY_DEBUG

The path to the debug variant of the JasPer library.

已棄用的變數

The following variables are provided for backward compatibility:

JASPER_FOUND

在 4.2 版之後被棄用: Use Jasper_FOUND, which has the same value.

Boolean indicating whether (the requested version of) JasPer was found.

JASPER_VERSION_STRING

在 4.2 版之後被棄用: Superseded by the Jasper_VERSION.

The version of JasPer found.

範例

Finding the JasPer library and linking it to a project target:

find_package(Jasper)
target_link_libraries(project_target PRIVATE Jasper::Jasper)