SET(NUMPY_FOUND TRUE)
ENDIF(NUMPY_INCLUDE_DIR)
IF(NUMPY_FOUND)
- SET(PYTHON_INCLUDE_DIRS ${NUMPY_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
- SET(PYTHON_DEFINITIONS "${PYTHON_DEFINITIONS} -DWITH_NUMPY")
+ SET(NUMPY_DEFINITIONS "-DWITH_NUMPY")
MESSAGE(STATUS "NumPy found : ${NUMPY_INCLUDE_DIR}")
ELSE(NUMPY_FOUND)
MESSAGE(STATUS "NumPy not found.")
SET_SOURCE_FILES_PROPERTIES(calcium.i PROPERTIES CPLUSPLUS ON)
SET(CMAKE_SWIG_FLAGS "-noexcept")
-ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${BOOST_DEFINITIONS} ${PYTHON_DEFINITIONS})
+ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${BOOST_DEFINITIONS} ${PYTHON_DEFINITIONS} ${NUMPY_DEFINITIONS})
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
${PYTHON_INCLUDE_DIRS}
+ ${NUMPY_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}/salome_adm