Warning, /jana2/cmake/FindXercesC.cmake is written in an unsupported language. File is not indexed.
0001
0002 # Copyright 2020, Jefferson Science Associates, LLC.
0003 # Subject to the terms in the LICENSE file found in the top-level directory.
0004
0005 #[=======================================================================[.rst:
0006 FindXercesC
0007 --------
0008
0009 Finds the XercesC library.
0010
0011 Imported Targets
0012 ^^^^^^^^^^^^^^^^
0013
0014 This module provides the following imported targets, if found:
0015
0016 ``XercesC::XercesC``
0017 The XercesC library
0018
0019 Result Variables
0020 ^^^^^^^^^^^^^^^^
0021
0022 This will define the following variables:
0023
0024 ``XercesC_FOUND``
0025 True if the system has the XercesC library.
0026 ``XercesC_VERSION``
0027 The version of the XercesC library which was found.
0028 ``XercesC_INCLUDE_DIRS``
0029 Include directories needed to use XercesC.
0030 ``XercesC_LIBRARIES``
0031 Libraries needed to link to XercesC.
0032
0033 #]=======================================================================]
0034
0035 set(XercesC_VERSION 3.1.4)
0036
0037 find_path(XercesC_INCLUDE_DIR
0038 NAMES "xercesc/parsers/DOMLSParserImpl.hpp"
0039 PATHS ${XercesC_DIR}/include
0040 )
0041
0042 find_library(XercesC_LIBRARY
0043 NAMES "xerces-c"
0044 PATHS ${XercesC_DIR}/lib
0045 )
0046
0047 set(XercesC_LIBRARIES ${XercesC_LIBRARY})
0048 set(XercesC_INCLUDE_DIRS ${XercesC_INCLUDE_DIR})
0049
0050 include(FindPackageHandleStandardArgs)
0051 find_package_handle_standard_args(XercesC
0052 FOUND_VAR XercesC_FOUND
0053 VERSION_VAR XercesC_VERSION
0054 REQUIRED_VARS XercesC_DIR XercesC_INCLUDE_DIR XercesC_LIBRARY
0055 )