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.

39 lines
835 B

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