Browse Source

add empty module

refactoring
Tom Janson 8 years ago
parent
commit
4f3c51fc4f
  1. 6
      CMakeLists.txt
  2. 2
      lib/stormpy/utility/__init__.py
  3. 4
      setup.py
  4. 10
      src/CMakeLists.txt

6
CMakeLists.txt

@ -38,3 +38,9 @@ pybind11_add_module(storage ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_storage.cpp ${ST
target_include_directories(storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR})
target_link_libraries(storage PRIVATE storm)
file(GLOB_RECURSE STORM_UTILITY_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/utility/*.cpp)
pybind11_add_module(utility ${CMAKE_CURRENT_SOURCE_DIR}/src/mod_utility.cpp ${STORM_UTILITY_SOURCES})
target_include_directories(utility PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${storm_INCLUDE_DIR})
target_link_libraries(utility PRIVATE storm)

2
lib/stormpy/utility/__init__.py

@ -0,0 +1,2 @@
from . import utility
from .utility import *

4
setup.py

@ -76,10 +76,10 @@ setup(
maintainer_email="sebastian.junges@cs.rwth-aachen.de",
url="http://moves.rwth-aachen.de",
description="stormpy - Python Bindings for Storm",
packages=['stormpy', 'stormpy.info', 'stormpy.expressions', 'stormpy.logic', 'stormpy.storage'],
packages=['stormpy', 'stormpy.info', 'stormpy.expressions', 'stormpy.logic', 'stormpy.storage', 'stormpy.utility'],
package_dir={'':'lib'},
ext_package='stormpy',
ext_modules=[CMakeExtension('core', subdir=''), CMakeExtension('info', subdir='info'),CMakeExtension('expressions', subdir='expressions'), CMakeExtension('logic', subdir='logic'), CMakeExtension('storage', subdir='storage')],
ext_modules=[CMakeExtension('core', subdir=''), CMakeExtension('info', subdir='info'), CMakeExtension('expressions', subdir='expressions'), CMakeExtension('logic', subdir='logic'), CMakeExtension('storage', subdir='storage'), CMakeExtension('utility', subdir='utility')],
cmdclass=dict(build_ext=CMakeBuild),
zip_safe=False,
install_requires=['pytest'],

10
src/CMakeLists.txt

@ -7,11 +7,13 @@ FILE(GLOB core_files "core/*.cpp")
#FILE(GLOB info_files "info/*.cpp")
#FILE(GLOB expressions_files "expressions/*.cpp")
FILE(GLOB storage_files "storage/*.cpp")
FILE(GLOB utility_files "utility/*.cpp")
FILE(GLOB logic_files "logic/*.cpp")
ADD_LIBRARY(stormpy_core SHARED mod_core.cpp ${core_files})
ADD_LIBRARY(stormpy_info SHARED mod_info.cpp)
ADD_LIBRARY(stormpy_expressions SHARED mod_expressions.cpp)
ADD_LIBRARY(stormpy_storage SHARED mod_storage.cpp ${storage_files})
ADD_LIBRARY(stormpy_utility SHARED mod_utility.cpp ${utility_files})
ADD_LIBRARY(stormpy_logic SHARED mod_logic.cpp ${logic_files})
SET_TARGET_PROPERTIES(stormpy_core PROPERTIES
@ -42,6 +44,13 @@ SET_TARGET_PROPERTIES(stormpy_storage PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/storage
)
SET_TARGET_PROPERTIES(stormpy_utility PROPERTIES
OUTPUT_NAME utility
PREFIX ""
SUFFIX ".so"
LIBRARY_OUTPUT_DIRECTORY ${STORMPY_OUTPUT_DIR}/utility
)
SET_TARGET_PROPERTIES(stormpy_logic PROPERTIES
OUTPUT_NAME logic
PREFIX ""
@ -53,4 +62,5 @@ TARGET_LINK_LIBRARIES(stormpy_core storm ${PYTHON_LIBRARIES})
TARGET_LINK_LIBRARIES(stormpy_info storm ${PYTHON_LIBRARIES})
TARGET_LINK_LIBRARIES(stormpy_expressions storm ${PYTHON_LIBRARIES})
TARGET_LINK_LIBRARIES(stormpy_storage storm ${PYTHON_LIBRARIES})
TARGET_LINK_LIBRARIES(stormpy_utility storm ${PYTHON_LIBRARIES})
TARGET_LINK_LIBRARIES(stormpy_logic storm ${PYTHON_LIBRARIES})
Loading…
Cancel
Save