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.

143 lines
10 KiB

  1. #############################################################
  2. ##
  3. ## Source file aggregation and clustering
  4. ##
  5. #############################################################
  6. file(GLOB_RECURSE STORM_HEADERS ${PROJECT_SOURCE_DIR}/src/*.h)
  7. file(GLOB_RECURSE STORM_HEADERS_CLI ${PROJECT_SOURCE_DIR}/src/cli/*.h)
  8. file(GLOB_RECURSE STORM_SOURCES_WITHOUT_MAIN ${PROJECT_SOURCE_DIR}/src/*/*.cpp)
  9. file(GLOB_RECURSE STORM_SOURCES_CLI ${PROJECT_SOURCE_DIR}/src/cli/*.cpp)
  10. file(GLOB_RECURSE STORM_MAIN_FILE ${PROJECT_SOURCE_DIR}/src/storm.cpp)
  11. file(GLOB_RECURSE STORM_DFT_MAIN_FILE ${PROJECT_SOURCE_DIR}/src/storm-dyftee.cpp)
  12. file(GLOB_RECURSE STORM_ADAPTERS_FILES ${PROJECT_SOURCE_DIR}/src/adapters/*.h ${PROJECT_SOURCE_DIR}/src/adapters/*.cpp)
  13. file(GLOB_RECURSE STORM_BUILDER_FILES ${PROJECT_SOURCE_DIR}/src/builder/*.h ${PROJECT_SOURCE_DIR}/src/builder/*.cpp)
  14. file(GLOB_RECURSE STORM_GENERATOR_FILES ${PROJECT_SOURCE_DIR}/src/generator/*.h ${PROJECT_SOURCE_DIR}/src/generator/*.cpp)
  15. file(GLOB_RECURSE STORM_CLI_FILES ${PROJECT_SOURCE_DIR}/src/cli/*.h ${PROJECT_SOURCE_DIR}/src/cli/*.cpp)
  16. file(GLOB_RECURSE STORM_EXCEPTIONS_FILES ${PROJECT_SOURCE_DIR}/src/exceptions/*.h ${PROJECT_SOURCE_DIR}/src/exceptions/*.cpp)
  17. file(GLOB_RECURSE STORM_LOGIC_FILES ${PROJECT_SOURCE_DIR}/src/logic/*.h ${PROJECT_SOURCE_DIR}/src/logic/*.cpp)
  18. file(GLOB STORM_MODELCHECKER_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/*.cpp)
  19. file(GLOB STORM_MODELCHECKER_PRCTL_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/*.cpp)
  20. file(GLOB_RECURSE STORM_MODELCHECKER_PRCTL_HELPER_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/helper/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/prctl/helper/*.cpp)
  21. file(GLOB STORM_MODELCHECKER_CSL_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/*.cpp)
  22. file(GLOB_RECURSE STORM_MODELCHECKER_CSL_HELPER_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/helper/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/csl/helper/*.cpp)
  23. file(GLOB_RECURSE STORM_MODELCHECKER_REACHABILITY_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/reachability/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/reachability/*.cpp)
  24. file(GLOB_RECURSE STORM_MODELCHECKER_EXPLORATION_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/exploration/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/exploration/*.cpp)
  25. file(GLOB_RECURSE STORM_MODELCHECKER_PROPOSITIONAL_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/propositional/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/propositional/*.cpp)
  26. file(GLOB_RECURSE STORM_MODELCHECKER_RESULTS_FILES ${PROJECT_SOURCE_DIR}/src/modelchecker/results/*.h ${PROJECT_SOURCE_DIR}/src/modelchecker/results/*.cpp)
  27. file(GLOB_RECURSE STORM_COUNTEREXAMPLES_FILES ${PROJECT_SOURCE_DIR}/src/counterexamples/*.h ${PROJECT_SOURCE_DIR}/src/counterexamples/*.cpp)
  28. file(GLOB_RECURSE STORM_PERMISSIVESCHEDULER_FILES ${PROJECT_SOURCE_DIR}/src/permissivesched/*.h ${PROJECT_SOURCE_DIR}/src/permissivesched/*.cpp)
  29. file(GLOB STORM_MODELS_FILES ${PROJECT_SOURCE_DIR}/src/models/*.h ${PROJECT_SOURCE_DIR}/src/models/*.cpp)
  30. file(GLOB_RECURSE STORM_MODELS_SPARSE_FILES ${PROJECT_SOURCE_DIR}/src/models/sparse/*.h ${PROJECT_SOURCE_DIR}/src/models/sparse/*.cpp)
  31. file(GLOB_RECURSE STORM_MODELS_SYMBOLIC_FILES ${PROJECT_SOURCE_DIR}/src/models/symbolic/*.h ${PROJECT_SOURCE_DIR}/src/models/symbolic/*.cpp)
  32. file(GLOB STORM_PARSER_FILES ${PROJECT_SOURCE_DIR}/src/parser/*.h ${PROJECT_SOURCE_DIR}/src/parser/*.cpp)
  33. file(GLOB_RECURSE STORM_PARSER_PRISMPARSER_FILES ${PROJECT_SOURCE_DIR}/src/parser/prismparser/*.h ${PROJECT_SOURCE_DIR}/src/parser/prismparser/*.cpp)
  34. file(GLOB STORM_SETTINGS_FILES ${PROJECT_SOURCE_DIR}/src/settings/*.h ${PROJECT_SOURCE_DIR}/src/settings/*.cpp)
  35. file(GLOB STORM_SETTINGS_MODULES_FILES ${PROJECT_SOURCE_DIR}/src/settings/modules/*.h ${PROJECT_SOURCE_DIR}/src/settings/modules/*.cpp)
  36. file(GLOB STORM_SOLVER_FILES ${PROJECT_SOURCE_DIR}/src/solver/*.h ${PROJECT_SOURCE_DIR}/src/solver/*.cpp)
  37. file(GLOB STORM_SOLVER_STATEELIMINATION_FILES ${PROJECT_SOURCE_DIR}/src/solver/stateelimination/*.h ${PROJECT_SOURCE_DIR}/src/solver/stateelimination/*.cpp)
  38. file(GLOB STORM_STORAGE_FILES ${PROJECT_SOURCE_DIR}/src/storage/*.h ${PROJECT_SOURCE_DIR}/src/storage/*.cpp)
  39. file(GLOB STORM_STORAGE_JANI_FILES ${PROJECT_SOURCE_DIR}/src/storage/jani/*.h ${PROJECT_SOURCE_DIR}/src/storage/jani/*.cpp)
  40. file(GLOB STORM_STORAGE_BISIMULATION_FILES ${PROJECT_SOURCE_DIR}/src/storage/bisimulation/*.h ${PROJECT_SOURCE_DIR}/src/storage/bisimulation/*.cpp)
  41. file(GLOB STORM_STORAGE_DD_FILES ${PROJECT_SOURCE_DIR}/src/storage/dd/*.h ${PROJECT_SOURCE_DIR}/src/storage/dd/*.cpp)
  42. file(GLOB STORM_STORAGE_DFT_FILES ${PROJECT_SOURCE_DIR}/src/storage/dft/*.h ${PROJECT_SOURCE_DIR}/src/storage/dft/*.cpp)
  43. file(GLOB STORM_STORAGE_DFT_ELEMENTS_FILES ${PROJECT_SOURCE_DIR}/src/storage/dft/elements/*.h ${PROJECT_SOURCE_DIR}/src/storage/dft/elements/*.cpp)
  44. file(GLOB_RECURSE STORM_STORAGE_DD_CUDD_FILES ${PROJECT_SOURCE_DIR}/src/storage/dd/cudd/*.h ${PROJECT_SOURCE_DIR}/src/storage/dd/cudd/*.cpp)
  45. file(GLOB_RECURSE STORM_STORAGE_DD_SYLVAN_FILES ${PROJECT_SOURCE_DIR}/src/storage/dd/sylvan/*.h ${PROJECT_SOURCE_DIR}/src/storage/dd/sylvan/*.cpp)
  46. file(GLOB_RECURSE STORM_STORAGE_EXPRESSIONS_FILES ${PROJECT_SOURCE_DIR}/src/storage/expressions/*.h ${PROJECT_SOURCE_DIR}/src/storage/expressions/*.cpp)
  47. file(GLOB_RECURSE STORM_STORAGE_PRISM_FILES ${PROJECT_SOURCE_DIR}/src/storage/prism/*.h ${PROJECT_SOURCE_DIR}/src/storage/prism/*.cpp)
  48. file(GLOB_RECURSE STORM_STORAGE_SPARSE_FILES ${PROJECT_SOURCE_DIR}/src/storage/sparse/*.h ${PROJECT_SOURCE_DIR}/src/storage/sparse/*.cpp)
  49. file(GLOB_RECURSE STORM_UTILITY_FILES ${PROJECT_SOURCE_DIR}/src/utility/*.h ${PROJECT_SOURCE_DIR}/src/utility/*.cpp)
  50. # Additional include files like the storm-config.h
  51. file(GLOB_RECURSE STORM_BUILD_HEADERS ${PROJECT_BINARY_DIR}/include/*.h)
  52. set(STORM_LIB_SOURCES ${STORM_SOURCES_WITHOUT_MAIN})
  53. list(REMOVE_ITEM STORM_LIB_SOURCES ${STORM_SOURCES_CLI})
  54. set(STORM_LIB_HEADERS ${STORM_HEADERS})
  55. list(REMOVE_ITEM STORM_LIB_HEADERS ${STORM_HEADERS_CLI})
  56. set(STORM_MAIN_SOURCES ${STORM_SOURCES_CLI} ${STORM_MAIN_FILE})
  57. set(STORM_DFT_MAIN_SOURCES ${STORM_SOURCES_CLI} ${STORM_DFT_MAIN_FILE})
  58. set(STORM_MAIN_HEADERS ${STORM_HEADERS_CLI})
  59. # Group the headers and sources
  60. source_group(main FILES ${STORM_MAIN_FILE})
  61. source_group(dft FILES ${STORM_DYFTTEE_FILE})
  62. source_group(adapters FILES ${STORM_ADAPTERS_FILES})
  63. source_group(builder FILES ${STORM_BUILDER_FILES})
  64. source_group(generator FILES ${STORM_GENERATOR_FILES})
  65. source_group(cli FILES ${STORM_CLI_FILES})
  66. source_group(exceptions FILES ${STORM_EXCEPTIONS_FILES})
  67. source_group(logic FILES ${STORM_LOGIC_FILES})
  68. source_group(generated FILES ${STORM_BUILD_HEADERS} ${STORM_BUILD_SOURCES})
  69. source_group(modelchecker FILES ${STORM_MODELCHECKER_FILES})
  70. source_group(modelchecker\\prctl FILES ${STORM_MODELCHECKER_PRCTL_FILES})
  71. source_group(modelchecker\\prctl\\helper FILES ${STORM_MODELCHECKER_PRCTL_HELPER_FILES})
  72. source_group(modelchecker\\csl FILES ${STORM_MODELCHECKER_CSL_FILES})
  73. source_group(modelchecker\\csl\\helper FILES ${STORM_MODELCHECKER_CSL_HELPER_FILES})
  74. source_group(modelchecker\\exploration FILES ${STORM_MODELCHECKER_EXPLORATION_FILES})
  75. source_group(modelchecker\\reachability FILES ${STORM_MODELCHECKER_REACHABILITY_FILES})
  76. source_group(modelchecker\\propositional FILES ${STORM_MODELCHECKER_PROPOSITIONAL_FILES})
  77. source_group(modelchecker\\results FILES ${STORM_MODELCHECKER_RESULTS_FILES})
  78. source_group(counterexamples FILES ${STORM_COUNTEREXAMPLES_FILES})
  79. source_group(permissiveschedulers FILES ${STORM_PERMISSIVESCHEDULER_FILES})
  80. source_group(models FILES ${STORM_MODELS_FILES})
  81. source_group(models\\sparse FILES ${STORM_MODELS_SPARSE_FILES})
  82. source_group(models\\symbolic FILES ${STORM_MODELS_SYMBOLIC_FILES})
  83. source_group(parser FILES ${STORM_PARSER_FILES})
  84. source_group(parser\\prismparser FILES ${STORM_PARSER_PRISMPARSER_FILES})
  85. source_group(settings FILES ${STORM_SETTINGS_FILES})
  86. source_group(settings\\modules FILES ${STORM_SETTINGS_MODULES_FILES})
  87. source_group(solver FILES ${STORM_SOLVER_FILES})
  88. source_group(solver\\stateelimination FILES ${STORM_SOLVER_STATEELIMINATION_FILES})
  89. source_group(storage FILES ${STORM_STORAGE_FILES})
  90. source_group(storage\\bisimulation FILES ${STORM_STORAGE_BISIMULATION_FILES})
  91. source_group(storage\\dd FILES ${STORM_STORAGE_DD_FILES})
  92. source_group(storage\\dd\\cudd FILES ${STORM_STORAGE_DD_CUDD_FILES})
  93. source_group(storage\\dd\\sylvan FILES ${STORM_STORAGE_DD_SYLVAN_FILES})
  94. source_group(storage\\expressions FILES ${STORM_STORAGE_EXPRESSIONS_FILES})
  95. source_group(storage\\prism FILES ${STORM_STORAGE_PRISM_FILES})
  96. source_group(storage\\sparse FILES ${STORM_STORAGE_SPARSE_FILES})
  97. source_group(storage\\jani FILES ${STORM_STORAGE_JANI_FILES})
  98. source_group(storage\\dft FILES ${STORM_STORAGE_DFT_FILES})
  99. source_group(storage\\dft\\elements FILES ${STORM_STORAGE_DFT_ELEMENTS_FILES})
  100. source_group(utility FILES ${STORM_UTILITY_FILES})
  101. # Add custom additional include or link directories
  102. if (ADDITIONAL_INCLUDE_DIRS)
  103. message(STATUS "StoRM - Using additional include directories ${ADDITIONAL_INCLUDE_DIRS}")
  104. include_directories(${ADDITIONAL_INCLUDE_DIRS})
  105. endif(ADDITIONAL_INCLUDE_DIRS)
  106. if (ADDITIONAL_LINK_DIRS)
  107. message(STATUS "StoRM - Using additional link directories ${ADDITIONAL_LINK_DIRS}")
  108. link_directories(${ADDITIONAL_LINK_DIRS})
  109. endif(ADDITIONAL_LINK_DIRS)
  110. ###############################################################################
  111. ## #
  112. ## Executable Creation #
  113. ## #
  114. ## All link_directories() calls MUST be made before this point #
  115. ## #
  116. ###############################################################################
  117. add_library(storm SHARED ${STORM_LIB_SOURCES} ${STORM_LIB_HEADERS}) # Adding headers for xcode
  118. add_dependencies(storm sylvan)
  119. add_dependencies(storm resources)
  120. add_executable(storm-main ${STORM_MAIN_SOURCES} ${STORM_MAIN_HEADERS})
  121. target_link_libraries(storm-main storm) # Adding headers for xcode
  122. set_target_properties(storm-main PROPERTIES OUTPUT_NAME "storm")
  123. add_executable(storm-dft-main ${STORM_DFT_MAIN_SOURCES} ${STORM_MAIN_HEADERS})
  124. target_link_libraries(storm-dft-main storm) # Adding headers for xcode
  125. set_target_properties(storm-dft-main PROPERTIES OUTPUT_NAME "storm-dft")
  126. target_link_libraries(storm ${STORM_LINK_LIBRARIES})
  127. INSTALL(TARGETS storm-main
  128. RUNTIME DESTINATION bin
  129. LIBRARY DESTINATION lib
  130. ARCHIVE DESTINATION lib
  131. )