# #xerces # if (WIN32) #Install from binary distribution. We will not attempt to crosscompile when hosted on WIN32. ExternalProject_Add ( xerces PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 URL http://archive.apache.org/dist/xerces/c/3/binaries/xerces-c-3.1.1-x86-windows-vc-9.0.zip URL_MD5 dc7c4b6382bf726fc46ba837519ea6f6 UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX= -P ${CMAKE_CURRENT_LIST_DIR}/install.cmake ) endif(WIN32) if (UNIX) #Install from source distribution. We need to crosscompile for the final target. ExternalProject_Add ( xerces PREFIX ${CMAKE_INSTALL_PREFIX} URL http://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.1.tar.gz URL_MD5 6a8ec45d83c8cfb1584c5a5345cb51ae UPDATE_COMMAND "" CONFIGURE_COMMAND /configure --prefix= --enable-transcoder-iconv BUILD_COMMAND make INSTALL_COMMAND make install ) endif (UNIX)