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.

37 lines
798 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. if(HAVE_STORM_DFT)
  15. set(HAVE_STORM_DFT_BOOL "True")
  16. else()
  17. set(HAVE_STORM_DFT_BOOL "False")
  18. endif()
  19. if(STORM_USE_CLN_EA)
  20. set(STORM_CLN_EA_BOOL "True")
  21. else()
  22. set(STORM_CLN_EA_BOOL "False")
  23. endif()
  24. if(STORM_USE_CLN_RF)
  25. set(STORM_CLN_RF_BOOL "True")
  26. else()
  27. set(STORM_CLN_RF_BOOL "False")
  28. endif()
  29. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.py.in ${CMAKE_CURRENT_BINARY_DIR}/generated/config.py @ONLY)