mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Laz-perf is a relatively "underground" library, and is not packaged for many major distributions. Its also tiny and trivial to include with the other external libraries. This avoids requiring users who want point cloud support to have to compile their own laz-perf
30 lines
776 B
CMake
30 lines
776 B
CMake
# CMake module to search for laz-perf
|
|
#
|
|
# Once done this will define
|
|
#
|
|
# LazPerf_FOUND - system has the zip library
|
|
# LazPerf_INCLUDE_DIRS - the zip include directories
|
|
#
|
|
# Copyright (c) 2020, Peter Petrik, <zilolv@gmail.com>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
FIND_PATH(LazPerf_INCLUDE_DIR
|
|
laz-perf/io.hpp
|
|
"$ENV{LIB_DIR}/include"
|
|
"$ENV{INCLUDE}"
|
|
/usr/local/include
|
|
/usr/include
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LazPerf DEFAULT_MSG LazPerf_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(LazPerf_INCLUDE_DIR)
|
|
|
|
IF (LazPerf_FOUND)
|
|
MESSAGE(STATUS "Found laz-perf: ${LazPerf_INCLUDE_DIR}")
|
|
ENDIF (LazPerf_FOUND)
|