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
1.2 KiB

  1. set(STORMPY_OUTPUT_DIR "${PROJECT_BINARY_DIR}/stormpy")
  2. set(STORMPY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/stormpy")
  3. if(STORM_HAVE_CLN)
  4. set(STORMPY_USE_CLN 1)
  5. else()
  6. set(STORMPY_USE_CLN 0)
  7. endif()
  8. # Set configuration file
  9. get_directory_property(STORMPY_INCLUDE_DIRS_PROP INCLUDE_DIRECTORIES)
  10. foreach(arg ${STORMPY_INCLUDE_DIRS_PROP})
  11. set(STORMPY_INCLUDE_DIRS "${STORMPY_INCLUDE_DIRS}${sep}${arg}")
  12. set(sep ":")
  13. endforeach()
  14. set(STORMPY_COMPILE_ARGS ${CMAKE_CXX_FLAGS})
  15. set(STORMPY_LIBRARY_DIRS "${PROJECT_BINARY_DIR}/src/storm")
  16. set(STORMPY_RPATH "${PROJECT_BINARY_DIR}/src/storm")
  17. configure_file (
  18. "${PROJECT_SOURCE_DIR}/stormpy/setup.cfg.in"
  19. "${PROJECT_SOURCE_DIR}/stormpy/setup.cfg"
  20. )
  21. # Add targets
  22. add_custom_target(PythonBindingsBuild
  23. COMMAND ${PYTHON_EXECUTABLE} setup.py build
  24. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  25. DEPENDS storm
  26. )
  27. add_custom_target(PythonBindingsDevelop
  28. COMMAND ${PYTHON_EXECUTABLE} setup.py develop
  29. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  30. DEPENDS storm
  31. )
  32. add_custom_target(PythonBindingsInstall
  33. COMMAND ${PYTHON_EXECUTABLE} setup.py install --user
  34. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  35. DEPENDS storm
  36. )