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.

64 lines
1.4 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. set(STORM_LIBS ${storm_LIBRARIES})
  8. # Check for storm-pars
  9. find_library(STORM_PARS NAMES storm-pars HINTS "${storm_DIR}/lib/")
  10. if(STORM_PARS)
  11. set(HAVE_STORM_PARS TRUE)
  12. else()
  13. set(HAVE_STORM_PARS FALSE)
  14. endif()
  15. # Check for storm-dft
  16. find_library(STORM_DFT NAMES storm-dft HINTS "${storm_DIR}/lib/")
  17. if(STORM_DFT)
  18. set(HAVE_STORM_DFT TRUE)
  19. else()
  20. set(HAVE_STORM_DFT FALSE)
  21. endif()
  22. find_library(STORM_POMDP NAMES storm-pomdp HINTS "${storm_DIR}/lib/")
  23. if(STORM_POMDP)
  24. set(HAVE_STORM_POMDP TRUE)
  25. else()
  26. set(HAVE_STORM_POMDP FALSE)
  27. endif()
  28. if(HAVE_STORM_PARS)
  29. set(HAVE_STORM_PARS_BOOL "True")
  30. else()
  31. set(HAVE_STORM_PARS_BOOL "False")
  32. endif()
  33. if(HAVE_STORM_DFT)
  34. set(HAVE_STORM_DFT_BOOL "True")
  35. else()
  36. set(HAVE_STORM_DFT_BOOL "False")
  37. endif()
  38. if(HAVE_STORM_POMDP)
  39. set(HAVE_STORM_POMDP_BOOL "True")
  40. else()
  41. set(HAVE_STORM_POMDP_BOOL "False")
  42. endif()
  43. if(STORM_USE_CLN_EA)
  44. set(STORM_CLN_EA_BOOL "True")
  45. else()
  46. set(STORM_CLN_EA_BOOL "False")
  47. endif()
  48. if(STORM_USE_CLN_RF)
  49. set(STORM_CLN_RF_BOOL "True")
  50. else()
  51. set(STORM_CLN_RF_BOOL "False")
  52. endif()
  53. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.py.in ${CMAKE_CURRENT_BINARY_DIR}/generated/config.py @ONLY)