Warning, /frameworks/kdelibs4support/cmake/modules/FindLibLZMA.cmake is written in an unsupported language. File is not indexed.

0001 # - Find LibLZMA
0002 # Find LibLZMA headers and library
0003 #
0004 #  LIBLZMA_FOUND             - True if liblzma is found.
0005 #  LIBLZMA_INCLUDE_DIRS      - Directory where liblzma headers are located.
0006 #  LIBLZMA_LIBRARIES         - Lzma libraries to link against.
0007 #  LIBLZMA_HAS_AUTO_DECODER  - True if lzma_auto_decoder() is found (required).
0008 #  LIBLZMA_HAS_EASY_ENCODER  - True if lzma_easy_encoder() is found (required).
0009 #  LIBLZMA_HAS_LZMA_PRESET   - True if lzma_lzma_preset() is found (required).
0010 
0011 
0012 # Copyright (c) 2008, Per Øyvind Karlsen, <peroyvind@mandriva.org>
0013 # Copyright (c) 2009, Alexander Neundorf, <neundorf@kde.org>
0014 # Copyright (c) 2009, Helio Chissini de Castro, <helio@kde.org>
0015 #
0016 # Redistribution and use is allowed according to the terms of the BSD license.
0017 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0018 
0019 
0020 FIND_PATH(LIBLZMA_INCLUDE_DIR lzma.h )
0021 FIND_LIBRARY(LIBLZMA_LIBRARY lzma)
0022 
0023 SET(LIBLZMA_LIBRARIES ${LIBLZMA_LIBRARY})
0024 SET(LIBLZMA_INCLUDE_DIRS ${LIBLZMA_INCLUDE_DIR})
0025 
0026 
0027 # We're using new code known now as XZ, even library still been called LZMA
0028 # it can be found in http://tukaani.org/xz/
0029 # Avoid using old codebase
0030 IF (LIBLZMA_LIBRARIES)
0031    INCLUDE(CheckLibraryExists)
0032    CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_auto_decoder "" LIBLZMA_HAS_AUTO_DECODER)
0033    CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_easy_encoder "" LIBLZMA_HAS_EASY_ENCODER)
0034    CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_lzma_preset "" LIBLZMA_HAS_LZMA_PRESET)
0035 ENDIF (LIBLZMA_LIBRARIES)
0036 
0037 INCLUDE(FindPackageHandleStandardArgs)
0038 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBLZMA  DEFAULT_MSG  LIBLZMA_INCLUDE_DIR 
0039                                                         LIBLZMA_LIBRARY
0040                                                         LIBLZMA_HAS_AUTO_DECODER
0041                                                         LIBLZMA_HAS_EASY_ENCODER
0042                                                         LIBLZMA_HAS_LZMA_PRESET
0043                                  )
0044 
0045 MARK_AS_ADVANCED( LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY )