The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

88 lines
1.8 KiB

2 months ago
  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-dft
  9. find_library(STORM_DFT NAMES storm-dft HINTS "${storm_DIR}/lib/")
  10. if(STORM_DFT)
  11. set(HAVE_STORM_DFT TRUE)
  12. else()
  13. set(HAVE_STORM_DFT FALSE)
  14. endif()
  15. # Check for storm-gspn
  16. find_library(STORM_GSPN NAMES storm-gspn HINTS "${storm_DIR}/lib/")
  17. if(STORM_GSPN)
  18. set(HAVE_STORM_GSPN TRUE)
  19. else()
  20. set(HAVE_STORM_GSPN FALSE)
  21. endif()
  22. # Check for storm-pars
  23. find_library(STORM_PARS NAMES storm-pars HINTS "${storm_DIR}/lib/")
  24. if(STORM_PARS)
  25. set(HAVE_STORM_PARS TRUE)
  26. else()
  27. set(HAVE_STORM_PARS FALSE)
  28. endif()
  29. # Check for storm-pompd
  30. find_library(STORM_POMDP NAMES storm-pomdp HINTS "${storm_DIR}/lib/")
  31. if(STORM_POMDP)
  32. set(HAVE_STORM_POMDP TRUE)
  33. else()
  34. set(HAVE_STORM_POMDP FALSE)
  35. endif()
  36. # Set variables
  37. if(STORM_USE_CLN_EA)
  38. set(STORM_CLN_EA_BOOL "True")
  39. else()
  40. set(STORM_CLN_EA_BOOL "False")
  41. endif()
  42. if(STORM_USE_CLN_RF)
  43. set(STORM_CLN_RF_BOOL "True")
  44. else()
  45. set(STORM_CLN_RF_BOOL "False")
  46. endif()
  47. if(STORM_HAVE_XERCES)
  48. set(STORM_XERCES_BOOL "True")
  49. else()
  50. set(STORM_XERCES_BOOL "False")
  51. endif()
  52. if(HAVE_STORM_DFT)
  53. set(HAVE_STORM_DFT_BOOL "True")
  54. else()
  55. set(HAVE_STORM_DFT_BOOL "False")
  56. endif()
  57. if(HAVE_STORM_GSPN)
  58. set(HAVE_STORM_GSPN_BOOL "True")
  59. else()
  60. set(HAVE_STORM_GSPN_BOOL "False")
  61. endif()
  62. if(HAVE_STORM_PARS)
  63. set(HAVE_STORM_PARS_BOOL "True")
  64. else()
  65. set(HAVE_STORM_PARS_BOOL "False")
  66. endif()
  67. if(HAVE_STORM_POMDP)
  68. set(HAVE_STORM_POMDP_BOOL "True")
  69. else()
  70. set(HAVE_STORM_POMDP_BOOL "False")
  71. endif()
  72. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.py.in ${CMAKE_CURRENT_BINARY_DIR}/generated/config.py @ONLY)