2 # Find the native EXPAT headers and libraries.
4 # EXPAT_INCLUDE_DIRS - where to find expat.h, etc.
5 # EXPAT_LIBRARIES - List of libraries when using expat.
6 # EXPAT_FOUND - True if expat found.
8 # Look for the header file.
9 FIND_PATH(EXPAT_INCLUDE_DIR NAMES expat.h)
11 # Look for the library.
12 FIND_LIBRARY(EXPAT_LIBRARY NAMES expat libexpat)
14 # handle the QUIETLY and REQUIRED arguments and set EXPAT_FOUND to TRUE if
15 # all listed variables are TRUE
16 INCLUDE(FindPackageHandleStandardArgs)
17 FIND_PACKAGE_HANDLE_STANDARD_ARGS(EXPAT DEFAULT_MSG EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
19 # Copy the results to the output variables.
21 SET(EXPAT_LIBRARIES ${EXPAT_LIBRARY})
22 SET(EXPAT_INCLUDE_DIRS ${EXPAT_INCLUDE_DIR})
25 SET(EXPAT_INCLUDE_DIRS)
28 MARK_AS_ADVANCED(EXPAT_INCLUDE_DIR EXPAT_LIBRARY)