Finds the data compression library that implements the LZMA (Lempel–Ziv–Markov chain algorithm) - liblzma.
This module provides the following Imported Targets:
LibLZMA::LibLZMAAdded in version 3.14.
Target encapsulating the liblzma library usage requirements, available only if liblzma is found.
This module defines the following variables:
LibLZMA_FOUNDBoolean indicating whether the liblzma is found. For backward compatibility,
the LIBLZMA_FOUND variable is also set to the same value.
LIBLZMA_INCLUDE_DIRSInclude directories containing headers needed to use liblzma.
LIBLZMA_LIBRARIESLibraries needed to link against to use liblzma.
LIBLZMA_VERSIONAdded in version 3.26.
The version of liblzma found (available as a string, for example, 5.0.3).
The following cache variables may also be set:
LIBLZMA_HAS_AUTO_DECODERBoolean sanity check result indicating whether the lzma_auto_decoder()
function (automatic decoder functionality) is found in liblzma (required).
LIBLZMA_HAS_EASY_ENCODERBoolean sanity check result indicating whether the lzma_easy_encoder()
function (basic encoder API) is found in liblzma (required).
LIBLZMA_HAS_LZMA_PRESETBoolean sanity check result indicating whether the lzma_lzma_preset()
function (preset compression configuration) is found in liblzma (required).
The following variables are provided for backward compatibility:
LIBLZMA_VERSION_MAJORThe major version of liblzma found.
LIBLZMA_VERSION_MINORThe minor version of liblzma found.
LIBLZMA_VERSION_PATCHThe patch version of liblzma found.
LIBLZMA_VERSION_STRINGThe version of liblzma found.
Changed in version 3.26: Superseded by LIBLZMA_VERSION.
Finding the liblzma library and linking it to a project target:
find_package(LibLZMA)
target_link_libraries(project_target PRIVATE LibLZMA::LibLZMA)