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.

51 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. 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. if(HAVE_STORM_PARS)
  23. set(HAVE_STORM_PARS_BOOL "True")
  24. else()
  25. set(HAVE_STORM_PARS_BOOL "False")
  26. endif()
  27. if(HAVE_STORM_DFT)
  28. set(HAVE_STORM_DFT_BOOL "True")
  29. else()
  30. set(HAVE_STORM_DFT_BOOL "False")
  31. endif()
  32. if(STORM_USE_CLN_EA)
  33. set(STORM_CLN_EA_BOOL "True")
  34. else()
  35. set(STORM_CLN_EA_BOOL "False")
  36. endif()
  37. if(STORM_USE_CLN_RF)
  38. set(STORM_CLN_RF_BOOL "True")
  39. else()
  40. set(STORM_CLN_RF_BOOL "False")
  41. endif()
  42. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.py.in ${CMAKE_CURRENT_BINARY_DIR}/generated/config.py @ONLY)