-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindXERCESC.cmake
37 lines (33 loc) · 1.18 KB
/
FindXERCESC.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Finds the xerces-c library
# Copyright © 2005-2009 Swiss Tropical Institute and Liverpool School Of Tropical Medicine
# Licence: GNU General Public Licence version 2 or later (see COPYING)
#
# Defines:
# XERCESC_LIBRARIES
FIND_PATH(XERCESC_INCLUDE_DIRS xercesc/dom/DOMNode.hpp
PATHS "[HKEY_CURRENT_USER\\software\\xsd\\include]"
"[HKEY_CURRENT_USER]\\xsd\\include]"
$ENV{XSDDIR}/include
/usr/local/include
/usr/include
"C:/Program Files/CodeSynthesis XSD 3.2/include"
"D:/Program Files/CodeSynthesis XSD 3.2/include"
${CMAKE_SOURCE_DIR}/../xsd/libxsd
)
find_library (XERCESC_LIB NAMES xerces-c xerces-c_3 xerces-c_2 xerces-c_static xerces-c_static_3 xerces-c_static_2
PATHS ${CMAKE_SOURCE_DIR}/lib
"C:/Program Files/CodeSynthesis XSD 3.2/lib/vc-8.0"
"D:/Program Files/CodeSynthesis XSD 3.2/lib/vc-8.0"
)
if (NOT XERCESC_LIB)
message (FATAL_ERROR "Unable to find xerces-c library")
endif (NOT XERCESC_LIB)
if (NOT XERCESC_INCLUDE_DIRS)
message (FATAL_ERROR "Unable to find xsd include files (xsd/cxx/parser/elements.hxx)")
endif (NOT XERCESC_INCLUDE_DIRS)
SET (XERCESC_LIBRARIES ${XERCESC_LIB})
MARK_AS_ADVANCED(
XERCESC_LIB
XERCESC_LIBRARIES
XERCESC_INCLUDE_DIRS
)