|
|
@ -8,57 +8,33 @@ add_subdirectory(resources/pybind11) |
|
|
|
|
|
|
|
file(GLOB_RECURSE STORM_CORE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/core/*.cpp) |
|
|
|
|
|
|
|
pybind11_add_module(stormpy.core ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_core.cpp ${STORM_CORE_SOURCES}) |
|
|
|
target_include_directories(stormpy.core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(stormpy.core PRIVATE storm) |
|
|
|
pybind11_add_module(core ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_core.cpp ${STORM_CORE_SOURCES}) |
|
|
|
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(core PRIVATE storm) |
|
|
|
|
|
|
|
file(GLOB_RECURSE STORM_INFO_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/info/*.cpp) |
|
|
|
|
|
|
|
pybind11_add_module(stormpy.info ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_info.cpp ${STORM_INFO_SOURCES}) |
|
|
|
target_include_directories(stormpy.info PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(stormpy.info PRIVATE storm) |
|
|
|
pybind11_add_module(info ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_info.cpp ${STORM_INFO_SOURCES}) |
|
|
|
target_include_directories(info PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(info PRIVATE storm) |
|
|
|
|
|
|
|
|
|
|
|
file(GLOB_RECURSE STORM_EXPRESSIONS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/expressions/*.cpp) |
|
|
|
|
|
|
|
pybind11_add_module(stormpy.expressions ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_expressions.cpp ${STORM_EXPRESSIONS_SOURCES}) |
|
|
|
target_include_directories(stormpy.expressions PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(stormpy.expressions PRIVATE storm) |
|
|
|
pybind11_add_module(expressions ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_expressions.cpp ${STORM_EXPRESSIONS_SOURCES}) |
|
|
|
target_include_directories(expressions PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(expressions PRIVATE storm) |
|
|
|
|
|
|
|
|
|
|
|
file(GLOB_RECURSE STORM_LOGIC_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/logic/*.cpp) |
|
|
|
|
|
|
|
pybind11_add_module(stormpy.logic ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_logic.cpp ${STORM_LOGIC_SOURCES}) |
|
|
|
target_include_directories(stormpy.logic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(stormpy.logic PRIVATE storm) |
|
|
|
pybind11_add_module(logic ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_logic.cpp ${STORM_LOGIC_SOURCES}) |
|
|
|
target_include_directories(logic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(logic PRIVATE storm) |
|
|
|
|
|
|
|
file(GLOB_RECURSE STORM_STORAGE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/storage/*.cpp) |
|
|
|
|
|
|
|
pybind11_add_module(stormpy.storage ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_storage.cpp ${STORM_STORAGE_SOURCES}) |
|
|
|
target_include_directories(stormpy.storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(stormpy.storage PRIVATE storm) |
|
|
|
|
|
|
|
#set(STORMPY_OUTPUT_DIR "${PROJECT_BINARY_DIR}/stormpy") |
|
|
|
#set(STORMPY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/stormpy") |
|
|
|
# |
|
|
|
#if(STORM_HAVE_CLN) |
|
|
|
# set(STORMPY_USE_CLN 1) |
|
|
|
#else() |
|
|
|
# set(STORMPY_USE_CLN 0) |
|
|
|
#endif() |
|
|
|
# |
|
|
|
## Set configuration file |
|
|
|
#get_directory_property(STORMPY_INCLUDE_DIRS_PROP INCLUDE_DIRECTORIES) |
|
|
|
#foreach(arg ${STORMPY_INCLUDE_DIRS_PROP}) |
|
|
|
# set(STORMPY_INCLUDE_DIRS "${STORMPY_INCLUDE_DIRS}${sep}${arg}") |
|
|
|
# set(sep ":") |
|
|
|
#endforeach() |
|
|
|
#set(STORMPY_COMPILE_ARGS ${CMAKE_CXX_FLAGS}) |
|
|
|
#set(STORMPY_LIBRARY_DIRS "${PROJECT_BINARY_DIR}/src/storm") |
|
|
|
#set(STORMPY_RPATH "${PROJECT_BINARY_DIR}/src/storm") |
|
|
|
#configure_file ( |
|
|
|
# "${PROJECT_SOURCE_DIR}/stormpy/setup.cfg.in" |
|
|
|
# "${PROJECT_SOURCE_DIR}/stormpy/setup.cfg" |
|
|
|
#) |
|
|
|
# |
|
|
|
pybind11_add_module(storage ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_storage.cpp ${STORM_STORAGE_SOURCES}) |
|
|
|
target_include_directories(storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR}) |
|
|
|
target_link_libraries(storage PRIVATE storm) |
|
|
|
|