CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(expat)
INCLUDE_REGULAR_EXPRESSION("^(expat|xml|ascii|utf|name|iascii|latin|itk).*$")

SET(expat_SRCS
  xmlparse.c
  xmltok.c
  xmlrole.c
)

INCLUDE_DIRECTORIES(${expat_SOURCE_DIR})
INCLUDE_DIRECTORIES(${expat_BINARY_DIR})

IF(WIN32)
  IF(NOT BUILD_SHARED_LIBS)
    SET (ITK_EXPAT_STATIC 1)
  ENDIF(NOT BUILD_SHARED_LIBS)
ENDIF(WIN32)

CONFIGURE_FILE(${expat_SOURCE_DIR}/expatConfig.h.in
               ${expat_BINARY_DIR}/expatConfig.h)
CONFIGURE_FILE(${expat_SOURCE_DIR}/expatDllConfig.h.in
               ${expat_BINARY_DIR}/expatDllConfig.h)
CONFIGURE_FILE(${expat_SOURCE_DIR}/.NoDartCoverage
               ${expat_BINARY_DIR}/.NoDartCoverage)

ADD_LIBRARY(expat ${expat_SRCS})

INCLUDE(GenerateExpatConfig.cmake)



CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(expat)
INCLUDE_REGULAR_EXPRESSION("^(expat|xml|ascii|utf|name|iascii|latin|itk).*$")

INCLUDE(${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityC.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)

SET(expat_SRCS
  xmlparse.c
  xmltok.c
  xmlrole.c
)

INCLUDE_DIRECTORIES(${expat_SOURCE_DIR})
INCLUDE_DIRECTORIES(${expat_BINARY_DIR})

IF(WIN32)
  IF(NOT BUILD_SHARED_LIBS)
    SET (ITK_EXPAT_STATIC 1)
  ENDIF(NOT BUILD_SHARED_LIBS)
ENDIF(WIN32)

CONFIGURE_FILE(${expat_SOURCE_DIR}/expatConfig.h.in
               ${expat_BINARY_DIR}/expatConfig.h)
CONFIGURE_FILE(${expat_SOURCE_DIR}/expatDllConfig.h.in
               ${expat_BINARY_DIR}/expatDllConfig.h)
CONFIGURE_FILE(${expat_SOURCE_DIR}/.NoDartCoverage
               ${expat_BINARY_DIR}/.NoDartCoverage)

ADD_LIBRARY(expat ${expat_SRCS})

INCLUDE(GenerateExpatConfig.cmake)



Add backward compatibility includes for configure-time checks
ENH: Add backward compatibility includes for configure-time checks
