Revision 79db16d8ae958e6a7a2de20858639e7f3eb37b5f authored by rldhont on 03 May 2021, 22:14:06 UTC, committed by Nyall Dawson on 10 May 2021, 20:24:57 UTC
1 parent dff541a
Raw File
FindLazPerf.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)
back to top