From 9fc8b732737f139d3e466510d75668ab45578960 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 8 Mar 2016 21:02:53 +0100 Subject: sync with upstream --- project/cmake/modules/FindLzo2.cmake | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 project/cmake/modules/FindLzo2.cmake (limited to 'project/cmake/modules/FindLzo2.cmake') 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 @@ +# - Try to find Lzo2 +# Once done this will define +# +# Lzo2_FOUND - system has Lzo2 +# Lzo2_INCLUDE_DIR - the Lzo2 include directory +# Lzo2_LIBRARIES - Link these to use Lzo2 +# Lzo2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_ + +# Copyright (c) 2006, Alexander Neundorf, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +FIND_PATH(LZO2_INCLUDE_DIRS lzo1x.h PATH_SUFFIXES lzo) + +FIND_LIBRARY(LZO2_LIBRARIES NAMES lzo2 liblzo2) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Lzo2 DEFAULT_MSG LZO2_INCLUDE_DIRS LZO2_LIBRARIES) + +MARK_AS_ADVANCED(LZO2_INCLUDE_DIRS LZO2_LIBRARIES) -- cgit v1.2.3