You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
996 B

8 years ago
  1. if(USE_XERCESC)
  2. find_package(XercesC QUIET)
  3. if(XercesC_FOUND)
  4. message(STATUS "Storm - Use system version of xerces.")
  5. set(STORM_HAVE_XERCES ON)
  6. include_directories(${XercesC_INCLUDE_DIRS})
  7. if(APPLE)
  8. FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation )
  9. FIND_LIBRARY(CORESERVICES_LIBRARY CoreServices )
  10. mark_as_advanced(COREFOUNDATION_LIBRARY)
  11. mark_as_advanced(CORESERVICES_LIBRARY)
  12. string(REPLACE ".so" ".dylib" XercesC_LIBRARIES ${XercesC_LIBRARIES})
  13. endif()
  14. # find_package(CURL)
  15. message (STATUS "Storm (GSPN) - Linking with xercesc: ${XercesC_LIBRARIES}")
  16. list(APPEND STORM_GSPN_LINK_LIBRARIES ${XercesC_LIBRARIES} ${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${CURL_LIBRARIES})
  17. else()
  18. set(STORM_HAVE_XERCES OFF)
  19. message (STATUS "Storm - Building without Xerces disables parsing XML formats (for GSPNs)")
  20. endif()
  21. endif(USE_XERCESC)