diff options
| author | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
| commit | 9fc8b732737f139d3e466510d75668ab45578960 (patch) | |
| tree | 76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/modules/FindLzo2.cmake | |
| parent | b75e2659df11c23aa921d2eed83c23adc282ed27 (diff) | |
| download | kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2 kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip | |
sync with upstream
Diffstat (limited to 'project/cmake/modules/FindLzo2.cmake')
| -rw-r--r-- | project/cmake/modules/FindLzo2.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/project/cmake/modules/FindLzo2.cmake b/project/cmake/modules/FindLzo2.cmake new file mode 100644 index 0000000..33eee10 --- /dev/null +++ b/project/cmake/modules/FindLzo2.cmake | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # - Try to find Lzo2 | ||
| 2 | # Once done this will define | ||
| 3 | # | ||
| 4 | # Lzo2_FOUND - system has Lzo2 | ||
| 5 | # Lzo2_INCLUDE_DIR - the Lzo2 include directory | ||
| 6 | # Lzo2_LIBRARIES - Link these to use Lzo2 | ||
| 7 | # Lzo2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_ | ||
| 8 | |||
| 9 | # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> | ||
| 10 | # | ||
| 11 | # Redistribution and use is allowed according to the terms of the BSD license. | ||
| 12 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
| 13 | |||
| 14 | |||
| 15 | FIND_PATH(LZO2_INCLUDE_DIRS lzo1x.h PATH_SUFFIXES lzo) | ||
| 16 | |||
| 17 | FIND_LIBRARY(LZO2_LIBRARIES NAMES lzo2 liblzo2) | ||
| 18 | |||
| 19 | include(FindPackageHandleStandardArgs) | ||
| 20 | find_package_handle_standard_args(Lzo2 DEFAULT_MSG LZO2_INCLUDE_DIRS LZO2_LIBRARIES) | ||
| 21 | |||
| 22 | MARK_AS_ADVANCED(LZO2_INCLUDE_DIRS LZO2_LIBRARIES) | ||
