diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-25 18:04:12 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-25 18:04:12 (GMT) |
commit | 9d4b5e52c18ded5dd55fdd21f629ff9d13f99d8c (patch) | |
tree | 3a8ff714eb1a58274bd1c01855947785d2c39079 /Utilities/cmexpat/CMakeLists.txt | |
parent | 2cf4a0270a1754c0e827795e611a201afcba076c (diff) | |
download | CMake-9d4b5e52c18ded5dd55fdd21f629ff9d13f99d8c.zip CMake-9d4b5e52c18ded5dd55fdd21f629ff9d13f99d8c.tar.gz CMake-9d4b5e52c18ded5dd55fdd21f629ff9d13f99d8c.tar.bz2 |
ENH: Initial import of expat
Diffstat (limited to 'Utilities/cmexpat/CMakeLists.txt')
-rw-r--r-- | Utilities/cmexpat/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Utilities/cmexpat/CMakeLists.txt b/Utilities/cmexpat/CMakeLists.txt new file mode 100644 index 0000000..e3a1581 --- /dev/null +++ b/Utilities/cmexpat/CMakeLists.txt @@ -0,0 +1,30 @@ +PROJECT(CMEXPAT) +INCLUDE_REGULAR_EXPRESSION("^(expat|xml|ascii|utf|name|iascii|latin|cm).*$") + +SET(expat_SRCS + xmlparse.c + xmltok.c + xmlrole.c +) + +INCLUDE(${CMAKE_ROOT}/Modules/TestBigEndian.cmake) +TEST_BIG_ENDIAN(CMEXPAT_BIGENDIAN) + +IF(WIN32) + IF(NOT BUILD_SHARED_LIBS) + SET (CM_EXPAT_STATIC 1) + ENDIF(NOT BUILD_SHARED_LIBS) +ENDIF(WIN32) + +CONFIGURE_FILE(${CMEXPAT_SOURCE_DIR}/expatConfig.h.in + ${CMEXPAT_BINARY_DIR}/expatConfig.h) +CONFIGURE_FILE(${CMEXPAT_SOURCE_DIR}/expatDllConfig.h.in + ${CMEXPAT_BINARY_DIR}/expatDllConfig.h) +CONFIGURE_FILE(${CMEXPAT_SOURCE_DIR}/.NoDartCoverage + ${CMEXPAT_BINARY_DIR}/.NoDartCoverage) +CONFIGURE_FILE(${CMEXPAT_SOURCE_DIR}/cm_expat_mangle.h + ${CMEXPAT_BINARY_DIR}/cm_expat_mangle.h) +CONFIGURE_FILE(${CMEXPAT_SOURCE_DIR}/expat.h + ${CMEXPAT_BINARY_DIR}/expat.h) + +ADD_LIBRARY(cmexpat ${expat_SRCS}) |