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.

54 lines
1.1 KiB

  1. cmake_minimum_required(VERSION 3.0.0)
  2. project(storm-version)
  3. find_package(storm REQUIRED)
  4. # Check for storm-pars
  5. if(EXISTS "${storm_DIR}/lib/libstorm-pars.dylib")
  6. set(HAVE_STORM_PARS TRUE)
  7. elseif(EXISTS "${storm_DIR}/lib/libstorm-pars.so")
  8. set(HAVE_STORM_PARS TRUE)
  9. else()
  10. set(HAVE_STORM_PARS FALSE)
  11. endif()
  12. # Check for storm-dft
  13. if(EXISTS "${storm_DIR}/lib/libstorm-dft.dylib")
  14. set(HAVE_STORM_DFT TRUE)
  15. elseif(EXISTS "${storm_DIR}/lib/libstorm-dft.so")
  16. set(HAVE_STORM_DFT TRUE)
  17. else()
  18. set(HAVE_STORM_DFT FALSE)
  19. endif()
  20. # Set configuration
  21. set(STORM_DIR ${storm_DIR})
  22. set(STORM_VERSION ${storm_VERSION})
  23. if(HAVE_STORM_PARS)
  24. set(HAVE_STORM_PARS_BOOL "True")
  25. else()
  26. set(HAVE_STORM_PARS_BOOL "False")
  27. endif()
  28. if(HAVE_STORM_DFT)
  29. set(HAVE_STORM_DFT_BOOL "True")
  30. else()
  31. set(HAVE_STORM_DFT_BOOL "False")
  32. endif()
  33. if(STORM_USE_CLN_EA)
  34. set(STORM_CLN_EA_BOOL "True")
  35. else()
  36. set(STORM_CLN_EA_BOOL "False")
  37. endif()
  38. if(STORM_USE_CLN_RF)
  39. set(STORM_CLN_RF_BOOL "True")
  40. else()
  41. set(STORM_CLN_RF_BOOL "False")
  42. endif()
  43. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.py.in ${CMAKE_CURRENT_BINARY_DIR}/generated/config.py @ONLY)