summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindLzo2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/modules/FindLzo2.cmake')
-rw-r--r--project/cmake/modules/FindLzo2.cmake22
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
15FIND_PATH(LZO2_INCLUDE_DIRS lzo1x.h PATH_SUFFIXES lzo)
16
17FIND_LIBRARY(LZO2_LIBRARIES NAMES lzo2 liblzo2)
18
19include(FindPackageHandleStandardArgs)
20find_package_handle_standard_args(Lzo2 DEFAULT_MSG LZO2_INCLUDE_DIRS LZO2_LIBRARIES)
21
22MARK_AS_ADVANCED(LZO2_INCLUDE_DIRS LZO2_LIBRARIES)