|
@ -1,31 +1,32 @@ |
|
|
if(USE_XERCES) |
|
|
|
|
|
|
|
|
if(USE_XERCESC) |
|
|
|
|
|
set(XERCESC_FIND_QUIETLY ON) |
|
|
find_package(Xerces QUIET REQUIRED) |
|
|
find_package(Xerces QUIET REQUIRED) |
|
|
if(XERCES_FOUND) |
|
|
|
|
|
|
|
|
if(XERCESC_FOUND) |
|
|
message(STATUS "Storm - Use system version of xerces.") |
|
|
message(STATUS "Storm - Use system version of xerces.") |
|
|
else() |
|
|
else() |
|
|
message(STATUS "Storm - Use shipped version of xerces.") |
|
|
message(STATUS "Storm - Use shipped version of xerces.") |
|
|
set(XERCES_LIB_DIR ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2/lib) |
|
|
|
|
|
|
|
|
set(XERCESC_LIB_DIR ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2/lib) |
|
|
ExternalProject_Add( |
|
|
ExternalProject_Add( |
|
|
xercesc |
|
|
xercesc |
|
|
SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/xercesc-3.1.2 |
|
|
SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/xercesc-3.1.2 |
|
|
CONFIGURE_COMMAND ${STORM_3RDPARTY_SOURCE_DIR}/xercesc-3.1.2/configure --prefix=${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2 --libdir=${XERCES_LIB_DIR} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} CFLAGS=-O3 CXXFLAGS=-O3 |
|
|
|
|
|
|
|
|
CONFIGURE_COMMAND ${STORM_3RDPARTY_SOURCE_DIR}/xercesc-3.1.2/configure --prefix=${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2 --libdir=${XERCESC_LIB_DIR} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} CFLAGS=-O3 CXXFLAGS=-O3 |
|
|
PREFIX ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2 |
|
|
PREFIX ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2 |
|
|
BUILD_COMMAND make |
|
|
BUILD_COMMAND make |
|
|
BUILD_IN_SOURCE 0 |
|
|
BUILD_IN_SOURCE 0 |
|
|
LOG_CONFIGURE ON |
|
|
LOG_CONFIGURE ON |
|
|
LOG_BUILD ON |
|
|
LOG_BUILD ON |
|
|
LOG_INSTALL ON |
|
|
LOG_INSTALL ON |
|
|
BUILD_BYPRODUCTS ${XERCES_LIB_DIR}/libxerces-c${DYNAMIC_EXT} ${XERCES_LIB_DIR}/libxerces-c${STATIC_EXT} |
|
|
|
|
|
|
|
|
BUILD_BYPRODUCTS ${XERCESC_LIB_DIR}/libxerces-c${DYNAMIC_EXT} ${XERCESC_LIB_DIR}/libxerces-c${STATIC_EXT} |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
set(XERCES_ROOT ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2) |
|
|
|
|
|
set(XERCESC_INCLUDE ${XERCES_ROOT}/include) |
|
|
|
|
|
set(XERCES_LIBRARY_PATH ${XERCES_LIB_DIR}) |
|
|
|
|
|
|
|
|
set(XERCESC_ROOT ${STORM_3RDPARTY_BINARY_DIR}/xercesc-3.1.2) |
|
|
|
|
|
set(XERCESC_INCLUDE ${XERCESC_ROOT}/include) |
|
|
|
|
|
set(XERCESC_LIBRARY_PATH ${XERCESC_LIB_DIR}) |
|
|
|
|
|
|
|
|
if(BUILD_STATIC) |
|
|
if(BUILD_STATIC) |
|
|
set(XERCESC_LIBRARIES ${XERCES_LIBRARY_PATH}/libxerces-c${STATIC_EXT}) |
|
|
|
|
|
|
|
|
set(XERCESC_LIBRARIES ${XERCESC_LIBRARY_PATH}/libxerces-c${STATIC_EXT}) |
|
|
else() |
|
|
else() |
|
|
set(XERCESC_LIBRARIES ${XERCES_LIBRARY_PATH}/libxerces-c${DYNAMIC_EXT}) |
|
|
|
|
|
|
|
|
set(XERCESC_LIBRARIES ${XERCESC_LIBRARY_PATH}/libxerces-c${DYNAMIC_EXT}) |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
add_dependencies(resources xercesc) |
|
|
add_dependencies(resources xercesc) |
|
@ -37,11 +38,11 @@ if(USE_XERCES) |
|
|
if(APPLE) |
|
|
if(APPLE) |
|
|
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation ) |
|
|
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation ) |
|
|
FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices ) |
|
|
FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices ) |
|
|
mark_as_advanced(COREFOUNDATION_LIBRARY) |
|
|
|
|
|
mark_as_advanced(CORESERVICES_LIBRARY) |
|
|
|
|
|
|
|
|
mark_as_advanced(COREFOUNDATION_LIBRARY) |
|
|
|
|
|
mark_as_advanced(CORESERVICES_LIBRARY) |
|
|
endif() |
|
|
endif() |
|
|
find_package(CURL) |
|
|
find_package(CURL) |
|
|
list(APPEND STORM_LINK_LIBRARIES ${XERCESC_LIBRARIES} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${CURL_LIBRARIES}) |
|
|
list(APPEND STORM_LINK_LIBRARIES ${XERCESC_LIBRARIES} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${CURL_LIBRARIES}) |
|
|
else() |
|
|
else() |
|
|
message (WARNING "StoRM - Building without Xerces disables parsing XML formats (for GSPNs)") |
|
|
|
|
|
endif(USE_XERCES) |
|
|
|
|
|
|
|
|
message (WARNING "Storm - Building without Xerces disables parsing XML formats (for GSPNs)") |
|
|
|
|
|
endif(USE_XERCESC) |