mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
when dependancies are missing (libzstd, lazperf) to an explicit WITH_EPT optional cmake switch which requires those dependancies This makes it easier people to determine whether they have the complete set of necessary dependancies to build Entwine point cloud support, as cmake will show an error if they enable WITH_EPT but don't have them...
35 lines
989 B
CMake
35 lines
989 B
CMake
# CMake module to search for libzstd
|
|
#
|
|
# Once done this will define
|
|
#
|
|
# ZSTD_FOUND - system has the zip library
|
|
# ZSTD_INCLUDE_DIRS - the zip include directories
|
|
# ZSTD_LIBRARY - Link this to use the zip library
|
|
#
|
|
# 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(ZSTD_INCLUDE_DIR
|
|
zstd.h
|
|
"$ENV{LIB_DIR}/include"
|
|
"$ENV{INCLUDE}"
|
|
/usr/local/include
|
|
/usr/include
|
|
)
|
|
|
|
FIND_LIBRARY(ZSTD_LIBRARY NAMES zstd PATHS "$ENV{LIB_DIR}/lib" "$ENV{LIB}" /usr/local/lib /usr/lib )
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZSTD DEFAULT_MSG
|
|
ZSTD_LIBRARY ZSTD_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(ZSTD_LIBRARY ZSTD_INCLUDE_DIR)
|
|
|
|
IF (ZSTD_FOUND)
|
|
MESSAGE(STATUS "Found ZSTD: ${ZSTD_LIBRARY}")
|
|
ELSE (ZSTD_FOUND)
|
|
MESSAGE(FATAL_ERROR "Could not find ZSTD")
|
|
ENDIF (ZSTD_FOUND)
|