2 # Find the native expat includes and library
4 # EXPAT_INCLUDE_DIR, where to find expat.h, etc.
5 # EXPAT_LIBRARIES, libraries to link against to use expat.
6 # EXPAT_FOUND, If false, do not try to use expat.
7 # also defined, but not for general use are
8 # EXPAT_LIBRARY, where to find the expat library.
10 FIND_PATH(EXPAT_INCLUDE_DIR expat.h)
12 SET(EXPAT_NAMES_RELEASE ${EXPAT_NAMES_RELEASE} expat libexpat )
13 FIND_LIBRARY(EXPAT_LIBRARY_RELEASE NAMES ${EXPAT_NAMES_RELEASE} )
15 SET(EXPAT_NAMES_DEBUG ${EXPAT_NAMES_DEBUG} expatd libexpatd )
16 FIND_LIBRARY(EXPAT_LIBRARY_DEBUG NAMES ${EXPAT_NAMES_DEBUG} )
18 IF(EXPAT_LIBRARY_DEBUG)
19 SET(EXPAT_LIBRARIES_FOUND TRUE)
20 MARK_AS_ADVANCED(EXPAT_LIBRARY_DEBUG)
21 ENDIF(EXPAT_LIBRARY_DEBUG)
23 IF(EXPAT_LIBRARY_RELEASE)
24 SET(EXPAT_LIBRARIES_FOUND TRUE)
25 MARK_AS_ADVANCED(EXPAT_LIBRARY_RELEASE)
26 ENDIF(EXPAT_LIBRARY_RELEASE)
28 # handle the QUIETLY and REQUIRED arguments and set EXPAT_FOUND to TRUE if
29 # all listed variables are TRUE
30 INCLUDE(FindPackageHandleStandardArgs)
31 FIND_PACKAGE_HANDLE_STANDARD_ARGS(EXPAT DEFAULT_MSG
32 EXPAT_LIBRARIES_FOUND EXPAT_INCLUDE_DIR)
35 # SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
38 MARK_AS_ADVANCED(EXPAT_INCLUDE_DIR EXPAT_LIBRARIES_FOUND)