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.

66 lines
2.2 KiB

  1. # This is a CMake example for Python
  2. INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src ${stormpy_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
  3. INCLUDE_DIRECTORIES(${pybind11_incdir})
  4. FILE(GLOB core_files "core/*.cpp")
  5. #FILE(GLOB info_files "info/*.cpp")
  6. #FILE(GLOB expressions_files "expressions/*.cpp")
  7. FILE(GLOB storage_files "storage/*.cpp")
  8. FILE(GLOB utility_files "utility/*.cpp")
  9. FILE(GLOB logic_files "logic/*.cpp")
  10. ADD_LIBRARY(stormpy_core SHARED mod_core.cpp ${core_files})
  11. ADD_LIBRARY(stormpy_info SHARED mod_info.cpp)
  12. ADD_LIBRARY(stormpy_expressions SHARED mod_expressions.cpp)
  13. ADD_LIBRARY(stormpy_storage SHARED mod_storage.cpp ${storage_files})
  14. ADD_LIBRARY(stormpy_utility SHARED mod_utility.cpp ${utility_files})
  15. ADD_LIBRARY(stormpy_logic SHARED mod_logic.cpp ${logic_files})
  16. SET_TARGET_PROPERTIES(stormpy_core PROPERTIES
  17. OUTPUT_NAME core
  18. PREFIX ""
  19. SUFFIX ".so"
  20. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/
  21. )
  22. SET_TARGET_PROPERTIES(stormpy_info PROPERTIES
  23. OUTPUT_NAME info
  24. PREFIX ""
  25. SUFFIX ".so"
  26. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/info
  27. )
  28. SET_TARGET_PROPERTIES(stormpy_expressions PROPERTIES
  29. OUTPUT_NAME expressions
  30. PREFIX ""
  31. SUFFIX ".so"
  32. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/expressions
  33. )
  34. SET_TARGET_PROPERTIES(stormpy_storage PROPERTIES
  35. OUTPUT_NAME storage
  36. PREFIX ""
  37. SUFFIX ".so"
  38. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/storage
  39. )
  40. SET_TARGET_PROPERTIES(stormpy_utility PROPERTIES
  41. OUTPUT_NAME utility
  42. PREFIX ""
  43. SUFFIX ".so"
  44. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/utility
  45. )
  46. SET_TARGET_PROPERTIES(stormpy_logic PROPERTIES
  47. OUTPUT_NAME logic
  48. PREFIX ""
  49. SUFFIX ".so"
  50. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/logic
  51. )
  52. TARGET_LINK_LIBRARIES(stormpy_core storm ${PYTHON_LIBRARIES})
  53. TARGET_LINK_LIBRARIES(stormpy_info storm ${PYTHON_LIBRARIES})
  54. TARGET_LINK_LIBRARIES(stormpy_expressions storm ${PYTHON_LIBRARIES})
  55. TARGET_LINK_LIBRARIES(stormpy_storage storm ${PYTHON_LIBRARIES})
  56. TARGET_LINK_LIBRARIES(stormpy_utility storm ${PYTHON_LIBRARIES})
  57. TARGET_LINK_LIBRARIES(stormpy_logic storm ${PYTHON_LIBRARIES})