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.

56 lines
1.8 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 logic_files "logic/*.cpp")
  9. ADD_LIBRARY(stormpy_core SHARED mod_core.cpp ${core_files})
  10. ADD_LIBRARY(stormpy_info SHARED mod_info.cpp)
  11. ADD_LIBRARY(stormpy_expressions SHARED mod_expressions.cpp)
  12. ADD_LIBRARY(stormpy_storage SHARED mod_storage.cpp ${storage_files})
  13. ADD_LIBRARY(stormpy_logic SHARED mod_logic.cpp ${logic_files})
  14. SET_TARGET_PROPERTIES(stormpy_core PROPERTIES
  15. OUTPUT_NAME core
  16. PREFIX ""
  17. SUFFIX ".so"
  18. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/
  19. )
  20. SET_TARGET_PROPERTIES(stormpy_info PROPERTIES
  21. OUTPUT_NAME info
  22. PREFIX ""
  23. SUFFIX ".so"
  24. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/info
  25. )
  26. SET_TARGET_PROPERTIES(stormpy_expressions PROPERTIES
  27. OUTPUT_NAME expressions
  28. PREFIX ""
  29. SUFFIX ".so"
  30. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/expressions
  31. )
  32. SET_TARGET_PROPERTIES(stormpy_storage PROPERTIES
  33. OUTPUT_NAME storage
  34. PREFIX ""
  35. SUFFIX ".so"
  36. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/storage
  37. )
  38. SET_TARGET_PROPERTIES(stormpy_logic PROPERTIES
  39. OUTPUT_NAME logic
  40. PREFIX ""
  41. SUFFIX ".so"
  42. LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/logic
  43. )
  44. TARGET_LINK_LIBRARIES(stormpy_core storm ${PYTHON_LIBRARIES})
  45. TARGET_LINK_LIBRARIES(stormpy_info storm ${PYTHON_LIBRARIES})
  46. TARGET_LINK_LIBRARIES(stormpy_expressions storm ${PYTHON_LIBRARIES})
  47. TARGET_LINK_LIBRARIES(stormpy_storage storm ${PYTHON_LIBRARIES})
  48. TARGET_LINK_LIBRARIES(stormpy_logic storm ${PYTHON_LIBRARIES})