c86648fabb19289543998ca00a95afc79d092d68~suv# Find the Gettext libintl headers and libraries.
c86648fabb19289543998ca00a95afc79d092d68~suv# This module reports information about the Gettext libintl
c86648fabb19289543998ca00a95afc79d092d68~suv# installation in several variables. General variables::
c86648fabb19289543998ca00a95afc79d092d68~suv# Intl_FOUND - true if the libintl headers and libraries were found
c86648fabb19289543998ca00a95afc79d092d68~suv# Intl_INCLUDE_DIRS - the directory containing the libintl headers
c86648fabb19289543998ca00a95afc79d092d68~suv# Intl_LIBRARIES - libintl libraries to be linked
c86648fabb19289543998ca00a95afc79d092d68~suv# The following cache variables may also be set::
c86648fabb19289543998ca00a95afc79d092d68~suv# Intl_INCLUDE_DIR - the directory containing the libintl headers
c86648fabb19289543998ca00a95afc79d092d68~suv# Intl_LIBRARY - the libintl library (if any)
c86648fabb19289543998ca00a95afc79d092d68~suv# .. note::
c86648fabb19289543998ca00a95afc79d092d68~suv# On some platforms, such as Linux with GNU libc, the gettext
c86648fabb19289543998ca00a95afc79d092d68~suv# functions are present in the C standard library and libintl
c86648fabb19289543998ca00a95afc79d092d68~suv# is not required. ``Intl_LIBRARIES`` will be empty in this
c86648fabb19289543998ca00a95afc79d092d68~suv# .. note::
c86648fabb19289543998ca00a95afc79d092d68~suv# If you wish to use the Gettext tools (``msgmerge``,
c86648fabb19289543998ca00a95afc79d092d68~suv# ``msgfmt``, etc.), use :module:`FindGettext`.
c86648fabb19289543998ca00a95afc79d092d68~suv# Written by Roger Leigh <rleigh@codelibre.net>
c86648fabb19289543998ca00a95afc79d092d68~suv#=============================================================================
c86648fabb19289543998ca00a95afc79d092d68~suv# Copyright 2014 Roger Leigh <rleigh@codelibre.net>
c86648fabb19289543998ca00a95afc79d092d68~suv# Distributed under the OSI-approved BSD License (the "License");
c86648fabb19289543998ca00a95afc79d092d68~suv# see accompanying file Copyright.txt for details.
c86648fabb19289543998ca00a95afc79d092d68~suv# CMake - Cross Platform Makefile Generator
c86648fabb19289543998ca00a95afc79d092d68~suv# Copyright 2000-2015 Kitware, Inc.
c86648fabb19289543998ca00a95afc79d092d68~suv# Copyright 2000-2011 Insight Software Consortium
c86648fabb19289543998ca00a95afc79d092d68~suv# All rights reserved.
c86648fabb19289543998ca00a95afc79d092d68~suv# Redistribution and use in source and binary forms, with or without
c86648fabb19289543998ca00a95afc79d092d68~suv# modification, are permitted provided that the following conditions
c86648fabb19289543998ca00a95afc79d092d68~suv# * Redistributions of source code must retain the above copyright
c86648fabb19289543998ca00a95afc79d092d68~suv# notice, this list of conditions and the following disclaimer.
c86648fabb19289543998ca00a95afc79d092d68~suv# * Redistributions in binary form must reproduce the above copyright
c86648fabb19289543998ca00a95afc79d092d68~suv# notice, this list of conditions and the following disclaimer in the
c86648fabb19289543998ca00a95afc79d092d68~suv# documentation and/or other materials provided with the distribution.
c86648fabb19289543998ca00a95afc79d092d68~suv# * Neither the names of Kitware, Inc., the Insight Software Consortium,
c86648fabb19289543998ca00a95afc79d092d68~suv# nor the names of their contributors may be used to endorse or promote
c86648fabb19289543998ca00a95afc79d092d68~suv# products derived from this software without specific prior written
c86648fabb19289543998ca00a95afc79d092d68~suv# permission.
c86648fabb19289543998ca00a95afc79d092d68~suv# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
c86648fabb19289543998ca00a95afc79d092d68~suv# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
c86648fabb19289543998ca00a95afc79d092d68~suv# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
c86648fabb19289543998ca00a95afc79d092d68~suv# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
c86648fabb19289543998ca00a95afc79d092d68~suv# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
c86648fabb19289543998ca00a95afc79d092d68~suv# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
c86648fabb19289543998ca00a95afc79d092d68~suv# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
c86648fabb19289543998ca00a95afc79d092d68~suv# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
c86648fabb19289543998ca00a95afc79d092d68~suv# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
c86648fabb19289543998ca00a95afc79d092d68~suv# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
c86648fabb19289543998ca00a95afc79d092d68~suv# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
c86648fabb19289543998ca00a95afc79d092d68~suv# ------------------------------------------------------------------------------
c86648fabb19289543998ca00a95afc79d092d68~suv# The above copyright and license notice applies to distributions of
c86648fabb19289543998ca00a95afc79d092d68~suv# CMake in source and binary form. Some source files contain additional
c86648fabb19289543998ca00a95afc79d092d68~suv# notices of original copyright by their contributors; see each source
c86648fabb19289543998ca00a95afc79d092d68~suv# for details. Third-party software packages supplied with CMake under
c86648fabb19289543998ca00a95afc79d092d68~suv# compatible licenses provide their own copyright notices documented in
c86648fabb19289543998ca00a95afc79d092d68~suv# corresponding subdirectories.
c86648fabb19289543998ca00a95afc79d092d68~suv# ------------------------------------------------------------------------------
c86648fabb19289543998ca00a95afc79d092d68~suv# CMake was initially developed by Kitware with the following sponsorship:
c86648fabb19289543998ca00a95afc79d092d68~suv# * National Library of Medicine at the National Institutes of Health
c86648fabb19289543998ca00a95afc79d092d68~suv# as part of the Insight Segmentation and Registration Toolkit (ITK).
c86648fabb19289543998ca00a95afc79d092d68~suv# * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
c86648fabb19289543998ca00a95afc79d092d68~suv# Visualization Initiative.
c86648fabb19289543998ca00a95afc79d092d68~suv# * National Alliance for Medical Image Computing (NAMIC) is funded by the
c86648fabb19289543998ca00a95afc79d092d68~suv# National Institutes of Health through the NIH Roadmap for Medical Research,
c86648fabb19289543998ca00a95afc79d092d68~suv# Grant U54 EB005149.
c86648fabb19289543998ca00a95afc79d092d68~suv# * Kitware, Inc.
c86648fabb19289543998ca00a95afc79d092d68~suv# This software is distributed WITHOUT ANY WARRANTY; without even the
c86648fabb19289543998ca00a95afc79d092d68~suv# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
c86648fabb19289543998ca00a95afc79d092d68~suv# See the License for more information.
c86648fabb19289543998ca00a95afc79d092d68~suv#=============================================================================
c86648fabb19289543998ca00a95afc79d092d68~suv# (To distribute this file outside of CMake, substitute the full
c86648fabb19289543998ca00a95afc79d092d68~suv# License text for the above reference.)
c86648fabb19289543998ca00a95afc79d092d68~suv# Find include directory
c86648fabb19289543998ca00a95afc79d092d68~suvfind_path(Intl_INCLUDE_DIR
c86648fabb19289543998ca00a95afc79d092d68~suv DOC "libintl include directory")
c86648fabb19289543998ca00a95afc79d092d68~suvmark_as_advanced(Intl_INCLUDE_DIR)
c86648fabb19289543998ca00a95afc79d092d68~suv# Find all Intl libraries
c86648fabb19289543998ca00a95afc79d092d68~suvfind_library(Intl_LIBRARY "intl"
c86648fabb19289543998ca00a95afc79d092d68~suv DOC "libintl libraries (if not in the C library)")
c86648fabb19289543998ca00a95afc79d092d68~suvmark_as_advanced(Intl_LIBRARY)
c86648fabb19289543998ca00a95afc79d092d68~suvinclude(FindPackageHandleStandardArgs)
c86648fabb19289543998ca00a95afc79d092d68~suvFIND_PACKAGE_HANDLE_STANDARD_ARGS(Intl
c86648fabb19289543998ca00a95afc79d092d68~suv FOUND_VAR Intl_FOUND
c86648fabb19289543998ca00a95afc79d092d68~suv REQUIRED_VARS Intl_INCLUDE_DIR
c86648fabb19289543998ca00a95afc79d092d68~suv FAIL_MESSAGE "Failed to find Gettext libintl")
c86648fabb19289543998ca00a95afc79d092d68~suvif(Intl_FOUND)
c86648fabb19289543998ca00a95afc79d092d68~suv set(Intl_INCLUDE_DIRS "${Intl_INCLUDE_DIR}")
c86648fabb19289543998ca00a95afc79d092d68~suv if(Intl_LIBRARY)
c86648fabb19289543998ca00a95afc79d092d68~suv set(Intl_LIBRARIES "${Intl_LIBRARY}")
c86648fabb19289543998ca00a95afc79d092d68~suv unset(Intl_LIBRARIES)