diff options
author | Andrew Shadura <andrewsh@debian.org> | 2015-11-01 19:41:28 +0100 |
---|---|---|
committer | Andrew Shadura <andrewsh@debian.org> | 2015-11-01 19:41:28 +0100 |
commit | 61c1a106bd81794f48e4cd85bae129f9270279e8 (patch) | |
tree | 29ecf644c4a13c2645bd8067e66ae8944dd2daf9 /cmake/modules/FindXercesC.cmake |
libdigidoc (3.10.1.1208-1) unstable; urgency=medium
* Initial upload (Closes: #658300).
# imported from the archive
Diffstat (limited to 'cmake/modules/FindXercesC.cmake')
-rw-r--r-- | cmake/modules/FindXercesC.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cmake/modules/FindXercesC.cmake b/cmake/modules/FindXercesC.cmake new file mode 100644 index 0000000..2d5c1cf --- /dev/null +++ b/cmake/modules/FindXercesC.cmake @@ -0,0 +1,30 @@ +# - Find Xerces-C +# Find the Xerces-C includes and library +# +# XERCESC_INCLUDE_DIR - Where to find xercesc include sub-directory. +# XERCESC_LIBRARIES - List of libraries when using Xerces-C. +# XERCESC_FOUND - True if Xerces-C found. + + +IF (XERCESC_INCLUDE_DIR) + # Already in cache, be silent. + SET(XERCESC_FIND_QUIETLY TRUE) +ENDIF (XERCESC_INCLUDE_DIR) + +FIND_PATH(XERCESC_INCLUDE_DIR xercesc/dom/DOM.hpp HINTS /Library/EstonianIDCard/include) + +SET(XERCESC_NAMES xerces-c xerces-c_3 xerces-c_2) +FIND_LIBRARY(XERCESC_LIBRARY NAMES ${XERCESC_NAMES} HINTS /Library/EstonianIDCard/lib) + +# Handle the QUIETLY and REQUIRED arguments and set XERCESC_FOUND to +# TRUE if all listed variables are TRUE. +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(XercesC DEFAULT_MSG XERCESC_LIBRARY XERCESC_INCLUDE_DIR) + +IF(XERCESC_FOUND) + SET( XERCESC_LIBRARIES ${XERCESC_LIBRARY} ) +ELSE(XERCESC_FOUND) + SET( XERCESC_LIBRARIES ) +ENDIF(XERCESC_FOUND) + +MARK_AS_ADVANCED( XERCESC_LIBRARY XERCESC_INCLUDE_DIR ) |