FindJasper¶
Finds the JasPer Image Coding Toolkit for handling image data in a variety of formats, such as the JPEG-2000.
Imported Targets¶
This module provides the following Imported Targets:
Jasper::Jasper
Added 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_FOUND
Boolean indicating whether the JasPer is found. For backward compatibility, the
JASPER_FOUND
variable is also set to the same value.JASPER_INCLUDE_DIRS
Added in version 3.22.
The include directories needed to use the JasPer library.
JASPER_LIBRARIES
The libraries needed to use JasPer.
JASPER_VERSION_STRING
The version of JasPer found.
Cache Variables¶
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.
Examples¶
Finding the JasPer library and linking it to a project target:
find_package(Jasper)
target_link_libraries(project_target PRIVATE Jasper::Jasper)