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. CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
  2. PROJECT("stormpy")
  3. SET(STORMPY_OUTPUT_DIR "${PROJECT_BINARY_DIR}/stormpy")
  4. FIND_PACKAGE ( PythonInterp REQUIRED )
  5. FIND_PACKAGE ( PythonLibs REQUIRED )
  6. file(STRINGS "${PROJECT_SOURCE_DIR}/setup.cfg" include_dirs
  7. REGEX "^include_dirs=.*$")
  8. string(REGEX REPLACE "^include_dirs=(.+)$" "\\1" include_dirs "${include_dirs}")
  9. string(REPLACE ":" ";" include_dirs ${include_dirs})
  10. file(STRINGS "${PROJECT_SOURCE_DIR}/setup.cfg" library_dirs
  11. REGEX "^library_dirs=.*$")
  12. string(REGEX REPLACE "^library_dirs=(.+)$" "\\1" library_dirs "${library_dirs}")
  13. string(REPLACE ":" ";" library_dirs ${library_dirs})
  14. INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/resources/pybind11/include ${include_dirs} ${PYTHON_INCLUDE_DIRS})
  15. LINK_DIRECTORIES(${library_dirs})
  16. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
  17. ADD_SUBDIRECTORY( src )
  18. add_custom_target(stormpy_files)
  19. add_custom_command(TARGET stormpy_files POST_BUILD COMMAND ${CMAKE_COMMAND} -E
  20. copy_directory ${CMAKE_SOURCE_DIR}/lib/stormpy ${STORMPY_OUTPUT_DIR}
  21. )
  22. add_custom_target(stormpy DEPENDS
  23. stormpy_files
  24. stormpy_core
  25. stormpy_info
  26. stormpy_expressions
  27. stormpy_storage
  28. stormpy_logic
  29. )