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.

36 lines
1.4 KiB

  1. if (NOT AUTORECONF)
  2. message(FATAL_ERROR "Cannot find autoreconf, cannot compile cudd3.")
  3. endif()
  4. set(CUDD_LIB_DIR ${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0/lib)
  5. ExternalProject_Add(
  6. cudd3
  7. DOWNLOAD_COMMAND ""
  8. SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/cudd-3.0.0
  9. PREFIX ${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0
  10. PATCH_COMMAND ${AUTORECONF}
  11. CONFIGURE_COMMAND ${STORM_3RDPARTY_SOURCE_DIR}/cudd-3.0.0/configure --enable-shared --enable-obj --prefix=${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0 --libdir=${CUDD_LIB_DIR} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
  12. BUILD_COMMAND make "CFLAGS=-O2 -w"
  13. INSTALL_COMMAND make install
  14. BUILD_IN_SOURCE 0
  15. LOG_CONFIGURE ON
  16. LOG_BUILD ON
  17. LOG_INSTALL ON
  18. BUILD_BYPRODUCTS ${CUDD_LIB_DIR}/libcudd${DYNAMIC_EXT} ${CUDD_LIB_DIR}/libcudd${STATIC_EXT}
  19. )
  20. # Do not use system CUDD, StoRM has a modified version
  21. set(CUDD_INCLUDE_DIR ${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0/include)
  22. set(CUDD_SHARED_LIBRARY ${CUDD_LIB_DIR}/libcudd${DYNAMIC_EXT})
  23. set(CUDD_STATIC_LIBRARY ${CUDD_LIB_DIR}/libcudd${STATIC_EXT})
  24. set(CUDD_VERSION_STRING 3.0.0)
  25. if(BUILD_SHARED_LIBS)
  26. list(APPEND STORM_LINK_LIBRARIES ${CUDD_SHARED_LIBRARY})
  27. else()
  28. list(APPEND STORM_LINK_LIBRARIES ${CUDD_STATIC_LIBRARY})
  29. endif()
  30. add_dependencies(resources cudd3)
  31. message(STATUS "Storm - Linking with CUDD ${CUDD_VERSION_STRING}.")
  32. include_directories(${CUDD_INCLUDE_DIR})