set (mod_py_SRCS
ModPy.cpp
PyDSM.cpp
PyDSMSession.cpp
)

INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})

EXECUTE_PROCESS(COMMAND python-config --libs OUTPUT_VARIABLE PYTHON_LIB_FLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${PYTHON_LIB_FLAGS}")

SET(sems_dsm_module_name mod_py)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/dsm.lib.rules.txt)

