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.

30 lines
1.3 KiB

  1. if(NOT AUTORECONF)
  2. message(ERROR "Cannot find autoreconf, cannot compile cudd3")
  3. endif()
  4. ExternalProject_Add(
  5. cudd3
  6. DOWNLOAD_COMMAND ""
  7. SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/cudd-3.0.0
  8. PREFIX ${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0
  9. PATCH_COMMAND ${AUTORECONF}
  10. 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=${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0/lib CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
  11. BUILD_COMMAND make "CFLAGS=-O2 -w"
  12. INSTALL_COMMAND make install
  13. BUILD_IN_SOURCE 0
  14. LOG_CONFIGURE ON
  15. LOG_BUILD ON
  16. LOG_INSTALL ON
  17. )
  18. # Do not use system CUDD, StoRM has a modified version
  19. set(CUDD_INCLUDE_DIR ${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0/include)
  20. set(CUDD_SHARED_LIBRARY ${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0/lib/libcudd${DYNAMIC_EXT})
  21. set(CUDD_STATIC_LIBRARY $${STORM_3RDPARTY_BINARY_DIR}/cudd-3.0.0/cudd-3.0.0/lib/libcudd${STATIC_EXT})
  22. set(CUDD_VERSION_STRING 3.0.0)
  23. list(APPEND STORM_LINK_LIBRARIES ${CUDD_SHARED_LIBRARY})
  24. add_dependencies(resources cudd3)
  25. message(STATUS "StoRM - Linking with CUDD ${CUDD_VERSION_STRING}")
  26. #message("StoRM - CUDD include dir: ${CUDD_INCLUDE_DIR}")
  27. include_directories(${CUDD_INCLUDE_DIR})