]> git.saurik.com Git - apt.git/blob - CMake/FindLZMA.cmake
Japanese manpages translation update
[apt.git] / CMake / FindLZMA.cmake
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
7 find_package(PkgConfig)
8
9 pkg_check_modules(LZMA_PKGCONF liblzma)
10
11 find_path(LZMA_INCLUDE_DIRS
12 NAMES lzma.h
13 PATHS ${LZMA_PKGCONF_INCLUDE_DIRS}
14 )
15
16
17 find_library(LZMA_LIBRARIES
18 NAMES lzma
19 PATHS ${LZMA_PKGCONF_LIBRARY_DIRS}
20 )
21
22 include(FindPackageHandleStandardArgs)
23 find_package_handle_standard_args(LZMA DEFAULT_MSG LZMA_INCLUDE_DIRS LZMA_LIBRARIES)
24
25 mark_as_advanced(LZMA_INCLUDE_DIRS LZMA_LIBRARIES)