]> git.saurik.com Git - apt.git/blame_incremental - CMake/FindLZMA.cmake
CMake: Add FindLZ4 and FindLZMA
[apt.git] / CMake / FindLZMA.cmake
... / ...
CommitLineData
1# - Try to find LZMA
2# Once done, this will define
3#
4# LZMA_FOUND - system has LZMA
5# LZMA_INCLUDE_DIRS - the LZMA include directories
6# LZMA_LIBRARIES - the LZMA library
7find_package(PkgConfig)
8
9pkg_check_modules(LZMA_PKGCONF liblzma)
10
11find_path(LZMA_INCLUDE_DIRS
12 NAMES lzma.h
13 PATHS ${LZMA_PKGCONF_INCLUDE_DIRS}
14)
15
16
17find_library(LZMA_LIBRARIES
18 NAMES lzma
19 PATHS ${LZMA_PKGCONF_LIBRARY_DIRS}
20)
21
22include(FindPackageHandleStandardArgs)
23find_package_handle_standard_args(LZMA DEFAULT_MSG LZMA_INCLUDE_DIRS LZMA_LIBRARIES)
24
25mark_as_advanced(LZMA_INCLUDE_DIRS LZMA_LIBRARIES)