Revision 209, 1.3 kB
(checked in by smidl, 16 years ago)
|
properties
|
-
Property svn:eol-style set to
native
|
Line | |
---|
1 | # - Find XERCES |
---|
2 | # Find the native XERCES includes and library |
---|
3 | # This module defines |
---|
4 | # XERCES_INCLUDE_DIR, where to find acml.h, etc. |
---|
5 | # XERCES_LIBRARIES, the libraries needed to use XERCES. |
---|
6 | # XERCES_FOUND, If false, do not try to use XERCES. |
---|
7 | # also defined, but not for general use are |
---|
8 | # XERCES_LIBRARY, where to find the XERCES library. |
---|
9 | |
---|
10 | FIND_PATH(XERCES_INCLUDE_DIR /xercesc/util/XercesVersion.hpp |
---|
11 | "${XERCES_DIR}\\include" |
---|
12 | ) |
---|
13 | |
---|
14 | FIND_LIBRARY(XERCES_LIBRARY |
---|
15 | NAMES |
---|
16 | xerces-c |
---|
17 | xerces-c_2 |
---|
18 | # TODO - jsou vazne vsecky potreba?? |
---|
19 | PATHS |
---|
20 | "${XERCES_DIR}\\lib" |
---|
21 | /usr/local/lib |
---|
22 | /usr/lib |
---|
23 | ) |
---|
24 | |
---|
25 | IF (XERCES_LIBRARY AND XERCES_INCLUDE_DIR) |
---|
26 | SET(XERCES_LIBRARIES ${XERCES_LIBRARY}) |
---|
27 | SET(XERCES_FOUND "YES") |
---|
28 | ELSE (XERCES_LIBRARY AND XERCES_INCLUDE_DIR) |
---|
29 | SET(XERCES_FOUND "NO") |
---|
30 | ENDIF (XERCES_LIBRARY AND XERCES_INCLUDE_DIR) |
---|
31 | |
---|
32 | IF (XERCES_FOUND) |
---|
33 | IF (NOT XERCES_FIND_QUIETLY) |
---|
34 | MESSAGE(STATUS "Found XERCES: ${XERCES_LIBRARIES}") |
---|
35 | ENDIF (NOT XERCES_FIND_QUIETLY) |
---|
36 | ELSE (XERCES_FOUND) |
---|
37 | IF (XERCES_FIND_REQUIRED) |
---|
38 | MESSAGE(FATAL_ERROR "Could not find XERCES library") |
---|
39 | ENDIF (XERCES_FIND_REQUIRED) |
---|
40 | ENDIF (XERCES_FOUND) |
---|
41 | |
---|
42 | # Deprecated declarations. |
---|
43 | GET_FILENAME_COMPONENT (NATIVE_XERCES_LIB_PATH ${XERCES_LIBRARY} PATH) |
---|
44 | |
---|
45 | MARK_AS_ADVANCED( |
---|
46 | XERCES_LIBRARY |
---|
47 | XERCES_INCLUDE_DIR |
---|
48 | ) |
---|