2004-06-25 22:04:12 +04:00
|
|
|
PROJECT(CMEXPAT)
|
|
|
|
|
|
|
|
SET(expat_SRCS
|
|
|
|
xmlparse.c
|
|
|
|
xmltok.c
|
|
|
|
xmlrole.c
|
|
|
|
)
|
|
|
|
|
|
|
|
INCLUDE(${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
|
|
|
|
TEST_BIG_ENDIAN(CMEXPAT_BIGENDIAN)
|
|
|
|
|
2005-03-16 21:26:36 +03:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
"${CMEXPAT_BINARY_DIR}/.."
|
|
|
|
)
|
|
|
|
|
2004-06-25 22:04:12 +04:00
|
|
|
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})
|
2009-10-02 01:21:28 +04:00
|
|
|
INSTALL(FILES COPYING DESTINATION ${CMake_DOC_DEST}/cmexpat)
|