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::JasperAdded in version 3.22.
Target encapsulating the JasPer library usage requirements, available only if the library is found.
Result Variables¶
This module defines the following variables:
Jasper_FOUNDAdded in version 3.3.
Boolean indicating whether (the requested version of) JasPer was found.
Jasper_VERSIONAdded in version 4.2.
The version of JasPer found.
JASPER_INCLUDE_DIRSAdded in version 3.22.
The include directories needed to use the JasPer library.
JASPER_LIBRARIESThe libraries needed to use JasPer.
Cache Variables¶
The following cache variables may also be set:
JASPER_INCLUDE_DIRThe directory containing the
jasper/jasper.hand other headers needed to use the JasPer library.JASPER_LIBRARY_RELEASEThe path to the release (optimized) variant of the JasPer library.
JASPER_LIBRARY_DEBUGThe path to the debug variant of the JasPer library.
Deprecated Variables¶
The following variables are provided for backward compatibility:
JASPER_FOUNDDeprecated since version 4.2: Use
Jasper_FOUND, which has the same value.Boolean indicating whether (the requested version of) JasPer was found.
JASPER_VERSION_STRINGDeprecated since version 4.2: Superseded by the
Jasper_VERSION.The version of JasPer found.
Examples¶
Finding the JasPer library and linking it to a project target:
find_package(Jasper)
target_link_libraries(project_target PRIVATE Jasper::Jasper)