Warning, /maui/mauikit-terminal/cmake/FindUtf8Proc.cmake is written in an unsupported language. File is not indexed.

0001 #.rst:
0002 # FindUtf8Proc
0003 # --------
0004 #
0005 # Find utf8proc
0006 #
0007 # Find the UTF-8 processing library
0008 #
0009 # ::
0010 #
0011 #   This module defines the following variables:
0012 #      UTF8PROC_FOUND       - True if UTF8PROC_INCLUDE_DIR & UTF8PROC_LIBRARY are found
0013 #      UTF8PROC_LIBRARIES   - Set when UTF8PROC_LIBRARY is found
0014 #      UTF8PROC_INCLUDE_DIRS - Set when UTF8PROC_INCLUDE_DIR is found
0015 #
0016 #
0017 #
0018 # ::
0019 #
0020 #      UTF8PROC_INCLUDE_DIR - where to find utf8proc.h
0021 #      UTF8PROC_LIBRARY     - the utf8proc library
0022 
0023 #=============================================================================
0024 # This module is adapted from FindALSA.cmake. Below are the original license
0025 # header.
0026 #=============================================================================
0027 # Copyright 2009-2011 Kitware, Inc.
0028 # Copyright 2009-2011 Philip Lowman <philip@yhbt.com>
0029 #
0030 # Distributed under the OSI-approved BSD License (the "License");
0031 # see accompanying file Copyright.txt for details.
0032 #
0033 # This software is distributed WITHOUT ANY WARRANTY; without even the
0034 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0035 # See the License for more information.
0036 #=============================================================================
0037 
0038 find_path(
0039     UTF8PROC_INCLUDE_DIR NAMES utf8proc.h DOC "The utf8proc include directory"
0040 )
0041 
0042 find_library(
0043     UTF8PROC_LIBRARY NAMES utf8proc DOC "The utf8proc library"
0044 )
0045 
0046 # handle the QUIETLY and REQUIRED arguments and set UTF8PROC_FOUND to TRUE if
0047 # all listed variables are TRUE
0048 include(FindPackageHandleStandardArgs)
0049 FIND_PACKAGE_HANDLE_STANDARD_ARGS(
0050     UTF8PROC
0051     REQUIRED_VARS UTF8PROC_LIBRARY UTF8PROC_INCLUDE_DIR
0052 )
0053 
0054 if(UTF8PROC_FOUND)
0055   set( UTF8PROC_LIBRARIES ${UTF8PROC_LIBRARY} )
0056   set( UTF8PROC_INCLUDE_DIRS ${UTF8PROC_INCLUDE_DIR} )
0057 endif()
0058 
0059 mark_as_advanced(UTF8PROC_INCLUDE_DIR UTF8PROC_LIBRARY)