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.

52 lines
1.1 KiB

  1. cmake_minimum_required(VERSION 3.0.0)
  2. project(storm-version)
  3. find_package(storm REQUIRED)
  4. # Set configuration
  5. set(STORM_DIR ${storm_DIR})
  6. set(STORM_VERSION ${storm_VERSION})
  7. # Check for storm-pars
  8. if(EXISTS "${storm_DIR}/lib/libstorm-pars.dylib")
  9. set(HAVE_STORM_PARS TRUE)
  10. elseif(EXISTS "${storm_DIR}/lib/libstorm-pars.so")
  11. set(HAVE_STORM_PARS TRUE)
  12. else()
  13. set(HAVE_STORM_PARS FALSE)
  14. endif()
  15. # Check for storm-dft
  16. if(EXISTS "${storm_DIR}/lib/libstorm-dft.dylib")
  17. set(HAVE_STORM_DFT TRUE)
  18. elseif(EXISTS "${storm_DIR}/lib/libstorm-dft.so")
  19. set(HAVE_STORM_DFT TRUE)
  20. else()
  21. set(HAVE_STORM_DFT FALSE)
  22. endif()
  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)