STYLE: Nightly Date Stamp
[cmake.git] / Modules / FindEXPAT.cmake
blobee5b2fafe9e591ff55175f8960b6552bb23dc263
1 # - Find expat
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)
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.
20 IF(EXPAT_FOUND)
21   SET(EXPAT_LIBRARIES ${EXPAT_LIBRARY})
22   SET(EXPAT_INCLUDE_DIRS ${EXPAT_INCLUDE_DIR})
23 ELSE(EXPAT_FOUND)
24   SET(EXPAT_LIBRARIES)
25   SET(EXPAT_INCLUDE_DIRS)
26 ENDIF(EXPAT_FOUND)
28 MARK_AS_ADVANCED(EXPAT_INCLUDE_DIR EXPAT_LIBRARY)