ENDIF()
# 6. Specifics
+
+ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import numpy ; import sys ; sys.stdout.write(numpy.get_include())" OUTPUT_VARIABLE NUMPY_INCLUDE_DIR ERROR_QUIET )
+ IF(NUMPY_INCLUDE_DIR)
+ 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")
+ MESSAGE(STATUS "numpy found : ${NUMPY_INCLUDE_DIR}")
+ ELSE(NUMPY_FOUND)
+ MESSAGE(STATUS "numpy not found")
+ ENDIF(NUMPY_FOUND)
+
## None here
ELSE()
MESSAGE(STATUS "Python was only partially (or not at all) found .")