diff options
author | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 |
commit | d2b2c90a06bf1f4a21df196430d1f95856900410 (patch) | |
tree | aba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /modules/FindLibLZMA.cmake | |
parent | e15ffacc69242c89107afbfda6f8ece9f2b56633 (diff) | |
download | extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2 |
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'modules/FindLibLZMA.cmake')
-rw-r--r-- | modules/FindLibLZMA.cmake | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/modules/FindLibLZMA.cmake b/modules/FindLibLZMA.cmake deleted file mode 100644 index 1a341b28..00000000 --- a/modules/FindLibLZMA.cmake +++ /dev/null @@ -1,45 +0,0 @@ -# - Find LibLZMA -# Find LibLZMA headers and library -# -# LIBLZMA_FOUND - True if liblzma is found. -# LIBLZMA_INCLUDE_DIRS - Directory where liblzma headers are located. -# LIBLZMA_LIBRARIES - Lzma libraries to link against. -# LIBLZMA_HAS_AUTO_DECODER - True if lzma_auto_decoder() is found (required). -# LIBLZMA_HAS_EASY_ENCODER - True if lzma_easy_encoder() is found (required). -# LIBLZMA_HAS_LZMA_PRESET - True if lzma_lzma_preset() is found (required). - - -# Copyright (c) 2008, Per Øyvind Karlsen, <peroyvind@mandriva.org> -# Copyright (c) 2009, Alexander Neundorf, <neundorf@kde.org> -# Copyright (c) 2009, Helio Chissini de Castro, <helio@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -FIND_PATH(LIBLZMA_INCLUDE_DIR lzma.h ) -FIND_LIBRARY(LIBLZMA_LIBRARY lzma) - -SET(LIBLZMA_LIBRARIES ${LIBLZMA_LIBRARY}) -SET(LIBLZMA_INCLUDE_DIRS ${LIBLZMA_INCLUDE_DIR}) - - -# We're using new code known now as XZ, even library still been called LZMA -# it can be found in http://tukaani.org/xz/ -# Avoid using old codebase -IF (LIBLZMA_LIBRARIES) - INCLUDE(CheckLibraryExists) - CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_auto_decoder "" LIBLZMA_HAS_AUTO_DECODER) - CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_easy_encoder "" LIBLZMA_HAS_EASY_ENCODER) - CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_lzma_preset "" LIBLZMA_HAS_LZMA_PRESET) -ENDIF (LIBLZMA_LIBRARIES) - -INCLUDE(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBLZMA DEFAULT_MSG LIBLZMA_INCLUDE_DIR - LIBLZMA_LIBRARY - LIBLZMA_HAS_AUTO_DECODER - LIBLZMA_HAS_EASY_ENCODER - LIBLZMA_HAS_LZMA_PRESET - ) - -MARK_AS_ADVANCED( LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY ) |