2 # Find the native LZMA headers and library
4 # LZMA_INCLUDE_DIR - where to find lzma.h, etc.
5 # LZMA_LIBRARIES - List of libraries when using liblzma.
6 # LZMA_FOUND - True if liblzma found.
9 # Already in cache, be silent
10 SET(LZMA_FIND_QUIETLY TRUE)
11 ENDIF (LZMA_INCLUDE_DIR)
13 FIND_PATH(LZMA_INCLUDE_DIR lzma.h)
14 FIND_LIBRARY(LZMA_LIBRARY NAMES lzma liblzma)
16 # handle the QUIETLY and REQUIRED arguments and set LZMA_FOUND to TRUE if
17 # all listed variables are TRUE
18 INCLUDE(FindPackageHandleStandardArgs)
19 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LZMA DEFAULT_MSG LZMA_LIBRARY LZMA_INCLUDE_DIR)
22 SET( LZMA_LIBRARIES ${LZMA_LIBRARY} )