summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindLzo2.cmake
blob: 33eee10f24fef066a253b028418ce61f16fcb7f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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, <neundorf@kde.org>
#
# 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)